How to check file metadata using shell script
It is well described how to verify file existence or type, but there is much more information that can be easily verified inside shell script using nothing more then simple stat command.
View ArticleHow to perform unattended upgrades
I have been using unattended upgrades on development machines since the end of last November, when I installed Debian Jessie release.
View ArticleHow to password protect GRUB entries
I always asked myself how to password protect GRUB entries on an encrypted notebook to lock down the boot loader and protect if from unauthorized access.
View ArticleHow to check external IP address
I am constantly on the move, so sometimes I need to check my external IP address, as I do not want to accidentally block myself on some kind of firewall on the way.
View ArticleHow to locate scripts in the PATH
Simple shell script that will iterate through the directories in the PATH variable and print only files identified as scripts.
View ArticleHow to inspect PostgreSQL queries
Sometimes I want to inspect and verify queries made by recently created application or hunt a bug that involves more complex queries. The essential part of this process requires altering PostgreSQL...
View ArticleHow to quickly and securely search for files
Using find command is not always the fastest way to search for specific files. The better method is to use mlocate utility which uses its own file database and provides only user accessible results.
View ArticleHow to check the progress of dd using proc filesystem
On Sunday 29th April 2012, I have described How to check the progress of dd using User-defined signal 1. Today, I will extend this topic further using proc filesystem.
View ArticleHow to store last command from history
I often want to save recently executed command to the personal log file for further reference, so let's do it.
View ArticleHow to find orphaned files
It is easy to overlook orphaned files without assigned existing owner or group after moving large amount of data. Fortunately, it is easy to spot these files using the find utility.
View ArticleHow to sync files with Google Drive
The easiest way to sync files with Google Drive is to use insync client which provides seamless user experience, customer support and enhanced functionality.
View ArticleAngband - Getting to know the unique game
Angband is an adventure simulation game that takes place in a deep dungeons, with the main goal of defeating Morgoth, the Lord of Darkness.
View ArticleThe Battle for Wesnoth - An outstanding turn based strategy
Battle for Wesnoth is a game worth playing not just in light of the fact that it is Open Source, as it is the most outstanding turn based tactical strategy game.
View ArticleTig - text-mode interface for git
Tig is an ncurses-based text-mode interface for git that uses Vim keybindings.
View ArticleNewsbeuter - an ncurses-based RSS reader
I have been using Tiny Tiny RSS for more then a one and a half year. It is great and pleasant to use web-based application, but currently I am more inclined to use console-based based replacement like...
View ArticleHow to automatically logout user from the login shell after period of inactivity
I want to automatically logout user from the login shell after defined period of inactivity, but leave X Window Terminals untouched. This will allow me to enhance security a little bit, as I will not...
View ArticleSimple hotlink protection implemented in nginx
This blog does not use more than four or five gigabytes per month, which is only about one hundredth of the available bandwidth. Still, I do not like bandwidth leechers, so I have implemented simple...
View ArticleHow to search for files by date
Today I would like to tell you how to search for files by date, which is very useful skill when you spend most of your time on the command-line.
View ArticleHow to verify installed packages
I have unexpectedly experienced an issue with a couple of broken packages, which was easily solved using debsums utility.
View ArticleHow to pretty-print system uptime
It is easy to use uptime command, but custom shell script is definitely more interesting solution as it provides more detailed information.Number of seconds for each time periodTime periodUsed...
View Article