nice little bash function to search for running processes
2014-10-13
68 words
1 min read
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 }
Related Articles:
- 2013/11/22 bash – using the vi mode more effectively.
- 2013/10/30 bashrc with lots of functions and useful alias
- 2012/12/28 Disable a few cores when you want to save power.
- 2010/11/11 function for copy files with progress bar (using pv – pipe viewer)
- 2010/09/04 Remove some path from the PATH variable temporarily.
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.