Month: October 2014

Multiple entry in .ssh/config file

Here is a link to one post on ssh config file.

However, if you want entries for lot of servers with their IPs or names, then it could be cumbersome to add all the entries in the .ssh/config file. So, here is a shortcut notation:

Host 1 2 3 4 5 6
Hostname 192.168.1.%h
    Ciphers arcfour

where '%h' denotes the IP that you use in the ssh command.

The following escape character substitutions will be performed:
             ‘%d’ (local user's home directory), ‘%h’ (remote host name), ‘%l’ (local host name),
              ‘%n’ (host name as provided on the command line), ‘%p’ (remote port),
              ‘%r’ (remote user name) or ‘%u’ (local user name).

nice little bash function to search for running processes

Here is a nice little handy function that I use very regurlarly.

You can use this function with parameter to just grep for that or just type psa to see all the running processes.

Just put this in your .bashrc file.

You might find it useful:


psa () 
    if [[ $1 == "" ]]; then
        ps -eaf;
        ps -eaf | grep --color=auto -i $1;

nall – schedule your tasks like a pro

nall is a utility to run your scripts ( for whatever ) every defined period. Here is description:

Description : Nall is a small gtk+ application that discretely fits into your freedesktop
: system tray (such as trayer).
: Its purpose is to spawn periodically every kind of script and display a
: one-line output in the tooltip window. The main usage of nall is monitoring or
: just notifying of almost everything (it just depends upon your imagination and
: ability to script).

For installation :

sudo yum install nall

Once done, you can start from terminal as “nall” or create a autostart file “~/.config/autostart/nall.desktop” to start it automatically when you log in :

[Desktop Entry]