When Windows freeze everybody knows what to do, just to press Ctrl + Alt + Delete and then go to task manager and End Task the frozen program or service but what if something freeze on LINUX, I know that sounds crazy but it can happen.
In Linux, when your entire system freezes, there are plenty of safe ways to exit and get back on track immediately. Alt + SysRq + (a selection of other keys) will do the magic.
|
You can find SysRq key on standard keyboard as Print Screen Key (Print Screen key works as SysRq in LINUX). Check the figure for SysRq key; |
Alt + SysRq + K
Kill all processes (including X), which are running on the currently active virtual console.
Alt + SysRq + E
Send the TERM signal to all running processes except init, asking them to exit.
Alt + SysRq + I
Send the KILL signal to all running processes except init.
Alt + SysRq + L
Send the KILL signal to all processes, including init.
Alt + SysRq + S
Run an emergency sync (cache write) on all mounted filesystems. This can prevent data loss.
Alt + SysRq + U
Remount all mounted filesystems as read-only. This has the same effect as the sync combination above, but with one important benefit: if the operation is successful, fsck won’t have to check all filesystems after a computer hardware reset.
Alt + SysRq + R
Turn off keyboard raw mode. This can be useful when your X session hangs. After issuing this command you may be able to use .
Alt + SysRq + B
Reboot immediately without syncing or unmounting your disks. Using this, you will likely end up with filesystem errors, so this is not highly recommended.
Alt + SysRq + O
Shut the system off right away.
Note: You can find these keys by just pressing Ctrl + SysRq + H
Ctrl+Alt+Esc can be used to kill a program but only in KDE