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;
    else
        ps -eaf | grep --color=auto -i $1;
    fi
}

bashrc with lots of functions and useful alias

Here is a link of a useful 10K lines bashrc

http://pastebin.com/LEkXXuST

You may not want to put the whole thing, but get an idea and use what you think can be helpful to you or at-least get an idea. This was not posted by me, so if you are re-using code as is, check the permissions to copy.