# HG changeset patch # User Oleksandr Gavenko # Date 1396368680 -10800 # Node ID b833a33ae5b6b2169180b182067ae3b7bb687d34 # Parent e98df1173d31f63bbbe41c8b3ad8a4b7967194f7 About pgrep/pkill. diff -r e98df1173d31 -r b833a33ae5b6 stat.rst --- 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 @@ -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