Pages

Wednesday, December 31, 2014

Shortcut to search a process by name

$ psg(){ ps aux | grep -v grep | egrep -e "$1|USER"; }

Function that searchs a process by its name and shows in the terminal.


* Shows the Header for reference


* Hides the process 'grep' from the list


* Case sensitive




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1zxM3b8

No comments:

Post a Comment