Hacker News new | ask | show | jobs
by geraldcombs 2281 days ago
It keeps the grep command itself from showing up in the output.
1 comments

Ooh, that's very cute! I usually throw a "| grep -v grep" on the end, but I'm gonna try to remember this.
Better to remember pgrep, instead of an incremental change that you'll find still has problem cases (such as matching usernames).

* http://mywiki.wooledge.org/ProcessManagement#But_I.27m_on_so...

M. Wooledge's description of ps options is not quite accurate, but that is incidental to xyr main point.