Open jlevy opened 7 years ago
I personally keep an alias:
alias proc='ps -e | grep'
I find this rather very convenient.
Also, pkill
being pattern kill
, it is important to note that it may sometimes do unwanted things. A pkill iref
would kill firefox for instance. This ought to be mentioned.
Following on to #462... We may want something like this:
pidof
(for exact matching) orpgrep
. Usepgrep -f
to search for processes and match the entire command line. (Combinations likeps aux | grep ...
and similar can also be used for searching for processes interactively, but can have many corner-case failures and should be avoided for scripting.) Usepkill
to kill processes by name.Thoughts/elaborations?