Write a simple Bash shell script that will allow you to specify the same option multiple times or provide multiple arguments to a single option.
Sometimes it is very convenient to define shell function and execute it remotely.
Sometimes it is important to monitor log file modification time to restart the writing process when the file was not modified for defined period of time. I have already described how to check file metadata using
stat utility which can be used to solve this task, but today I want to take advantage of the plain
It is nothing fancy, but there are situations where it is beneficial to know how to identify and inspect command before execution.
I want to automatically log out the user from the login shell after a defined period of inactivity but leave X Window Terminals untouched. This will allow me to enhance security slightly, as I will not accidentally leave the superuser session running for a long time.
I often want to save a recently executed command to the personal log file for further reference, so let’s do it.
I have already written a blog post about useful Bourne Again SHell key sequences, so today, I will touch on another important aspect of the daily routine – the history.
The default interactive shell in Debian is Bourne Again SHell, so it worth to invest some time to at least skim through the available readline key sequences to gain higher proficiency at the command-line.