equal
deleted
inserted
replaced
22 |
22 |
23 View process commands:: |
23 View process commands:: |
24 |
24 |
25 $ ps -e -o pid,cmd |
25 $ ps -e -o pid,cmd |
26 |
26 |
|
27 Show processes with same substring in command:: |
|
28 |
|
29 $ pgrep -f $SUBSTR |
|
30 $ pgrep -l -f $SUBSTR |
|
31 $ pgrep -a -f $SUBSTR |
|
32 |
27 View detail process info:: |
33 View detail process info:: |
28 |
34 |
29 $ ps -f <id> |
35 $ ps -f <id> |
30 |
36 |
31 Kill process:: |
37 Kill process:: |
32 |
38 |
33 $ kill -s $SIG $PID |
39 $ kill -s $SIG $PID |
|
40 |
|
41 Kill processes with same name:: |
|
42 |
|
43 $ killall $NAME |
|
44 |
|
45 Kill processes with same substring in command:: |
|
46 |
|
47 $ pkill -f $SUBSTR |
34 |
48 |
35 View processes interactively:: |
49 View processes interactively:: |
36 |
50 |
37 $ htop |
51 $ htop |
38 |
52 |