How to kill all processes in Linux

I want to kill all processes on my computer. Which command can I use to do so?


Solution 1:

The command killall5 -9 will forcefully terminate all running processes except your login shell, init, and kernel-specific processes.

More information here: http://linux.about.com/library/cmd/blcmdl8_killall5.htm

Solution 2:

shutdown -h now