About pgrep/pkill.
--- a/stat.rst Tue Apr 01 19:05:48 2014 +0300
+++ b/stat.rst Tue Apr 01 19:11:20 2014 +0300
@@ -24,6 +24,12 @@
$ ps -e -o pid,cmd
+Show processes with same substring in command::
+
+ $ pgrep -f $SUBSTR
+ $ pgrep -l -f $SUBSTR
+ $ pgrep -a -f $SUBSTR
+
View detail process info::
$ ps -f <id>
@@ -32,6 +38,14 @@
$ kill -s $SIG $PID
+Kill processes with same name::
+
+ $ killall $NAME
+
+Kill processes with same substring in command::
+
+ $ pkill -f $SUBSTR
+
View processes interactively::
$ htop