commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Grep for a named process.
There are 3 alternatives - vote for the best!
Pipes the header row of ps to STDERR, then greps for the command on the output of ps, removing the grep entry before that.
You'll need to install proctools. MacPorts and Fink have this if you're running Mac OS X, check your Linux distribution's repositories if it isn't installed by default.
If you can do better, submit your command here.
You must be signed in to comment.