I want to kill all processes on my computer. Which command can I use to do so?
|
feedback
|
migrated from stackoverflow.com Jul 8 '10 at 23:46
This question came from our site for professional and enthusiast programmers.
|
The command More information here: http://linux.about.com/library/cmd/blcmdl8_killall5.htm | |||
|
feedback
|
|
In some Linux distros, you can switch to Run Level 0 - which I think is halted, but still switched on:
I've actually heard of this being used for dedicated firewall servers since it keeps some of the needed low-level kernel stuff loaded like iptables... weird eh? See here for more info. To see which distros do what at each runlevel, have a look here. | |||||||||
feedback
|
|
The easiest way is to use the Magic SysRq key : Alt+SysRq+i. This will kill all processes except for Alt+SysRq+o will shut down the system (killing init also). Note that you may need to set the keyboard to XLATE mode first : Alt+SysRq+r Also note that on some modern keyboards, you have to use PrtSc rather than SysRq. | ||||
|
feedback
|
|
You can kill all of a given user's processes using one of these:
or
or you can use the numeric UID instead of the username. Beware that | |||
|
feedback
|
|
To kill all processes owned by the current user you can do:
This will of course, also kill the shell you are currently logged in from. If you don't want that behaviour, try raku015's answer. Note that if you run this as the root user, bad things will happen. | |||
|
feedback
|
|
The quickest, most foolproof way to kill all processes is to pull the power cord from the wall. | |||||||||||||||
feedback
|

sudo reboot– Stephen Jul 8 '10 at 23:42