Linux Keyboard Shortcuts: Safe Way to Exit During System Freezes

In Windows, when your system hangs, you can always press Ctrl-Alt-Delete, wait for the Task Manager to open, and kill the process that doesn’t respond. However, Ctrl-Alt-Delete don’t always work the way you want it to leaving you no other option but to do a hard-reset, and perhaps as a result corrupt your data kissing your important files goodbye.

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 trick. Note: 'SysRq' key is equivalent to the 'Print Screen' key.

Alt + SysR + 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 issueing 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.

If all these ‘Alt + SysRq’ keyboard combo are hard to remember, you can press Alt + SysRq + H to display a helpful list of the shortcuts above.

1 comments:

  • 13 January 2012 at 00:22
    Anonymous Disse:

    Digeus I recommend it when operational system doesn't boot up, freezes, works slow or hangs. I also use Windows Tune Up Suite. It has Regisry Cleaner, Junk Files Cleaner, Registry Defragmenter, Duplicate Files Finder, Disk Space Analyzer, Smart Uninstaller, Service Manager, Startup Manager and many other tools.

    delete

Post a Comment

 

Tech Source Copyright © 2011 -- Powered by Blogger