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;

About Amit Agarwal