psgrep: a shortest way to do 'ps aux | grep'
Just define this alias:
alias psgrep='ps aux | grep '
And then call it with:
psgrep git
or anything you want to find!
Written by Lucas
Related protips
3 Responses
On Linux you're better of with pgrep
which is less error prone and has many nifty options (like searching by user, too).
It is installed on all Linux distros I've seen so far, maybe even BSDs, but not on OS X.
over 1 year ago
·
you can brew install pgrep
on OSX ;p
Also pgrep handles the grep process which always appears when grepping ps aux.
over 1 year ago
·
A version which discards grep processes and removes case sensitivity:
alias psg='ps aux | grep -v " grep " | grep -i'
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Related Tags
#linux
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#