Supposing that ps -u 
whoami returned something like  PID TTY          TIME CMD
 4333 pts/1    00:00:00 fish
 4335 ?        00:00:00 fishd
 4816 ?        00:00:00 intellij
 4868 ?        00:50:42 java
 4939 ?        00:00:19 fsnotifier64
 7667 ?        02:49:08 firefox
 7698 ?        00:00:00 unity-webapps-s
And you wanted to kill the 
firefox process by its process id, then you'd do:kill -1 7667
Then you'd re-run the same 
ps command and check if the process was still running. If it is still running, then do akill -2 7667
working your way up to 
-9.
To kill all processes started by your account, enter 
kill <level> -1. Same as before: work your way up to -9.
If you know the name of the process you can simply go 
killall <processname>, where the is what you are trying to kill. For example: killall fish (fish, in this sense, is the Friendly Interactive SHell).
Documentation for 
killall can be found here: http://manpages.ubuntu.com/manpages/hardy/man1/killall.1.html
ato 
kill program
ps -ef|grep be
setelah itu nama program yg mau dihapus dengan cek pid nya diliet
kill -9 123000
0 Response to "kill pid ubuntu"
Posting Komentar