Imagine you are running an application and for whatever reason, it hangs.
You could use ‘ps -ef’ to find the process and then kill the process or you could use htop.
There is a quicker and easier command that you will love called xkill
Simply type the following into a terminal and then click on the window of the application you want to kill.
xkill
What happens though if the whole system is hanging?
Hold down the ‘alt’ and ‘sysrq’ keys on your keyboard and whilst they are held down type the following slowly:
REISUB
This will restart your computer without having to hold the power button.