Updated : Dec 24, 2016 in Bash

Force reboot a remote Linux server

Introduction: After having tried to do a reboot of a remote Linux server via the command reboot which had no effect, I tried to find…

Updated : Dec 19, 2016 in Bash

Display MySQL databases types in bash

Based on the site: http://stackoverflow.com/questions/213543/how-can-i-check-mysql-engine-type-for-a-specific-table Here is a bash command that will display the databases types(innoDB or MyISAM) of all the MySQL databases except for…

Updated : Nov 22, 2016 in Bash

Forcing pam users to use only FTPS and block SFTP/SSH

Introduction: I needed to force certain PAM users(configured in /etc/passwd) to use FTPS and block them from using SSH or SFTP. Here is a solution…

Updated : Nov 05, 2016 in Bash

Displaying the list of all ‘at’ jobs and their respective commands

Introduction: The command atq gives me the list of at jobs waiting to be executed and their execution times. Each line starting with the job…

Updated : Apr 05, 2016 in Bash

Useful ps options

Here are some (growing) tricks in order to get the maximum of the PS command: I set the command's options in an alias to simplify…

Updated : Feb 13, 2016 in Bash

Verifying the validity of an NFS mount

Introduction: Every now and then if an NFS mount is no more connected to the server or something goes wrong with the NFS connection, running…

Updated : Jan 29, 2016 in Bash

Recursively delete files securely: shredding

Description: Every administrator should know that when we delete a file on the hard disk, almost nothing is really deleted. The space used by the…

Updated : Jan 14, 2016 in Bash

Using SS tool for network troubleshooting

Introduction: The following article is been copied completely 1 to 1 (full plagiat!!)from the following site inn order to be able to refer to it…

Updated : Jan 14, 2016 in Bash

Preventing a bash script from running concurrently

Introduction: In order to prevent a bash script instance from running more than once concurrently, here is a small tip on how to write the…

Updated : Aug 15, 2015 in Bash

Finding the absolute path of a running script

In bash scripts we often need to know in which directory the running script is found especially when the script is in the $PATH and…