On 3/15/19 2:52 AM, Peter Pentchev wrote:
1. Learn to use pgrep instead of the myriad variations of ps | grep;
pgrep has been standardized by POSIX for a long time and is almost
certainly available in all the installations that you will ever need
to touch[1].
pgrep is interesting! But it is not listing all the processes. :'(
$ pgrep firefox
2135
$ ps ax | grep [f]irefox | awk '{print $1}'
2135
2239
2342
2425
