To use this magic, you should check the value of "/proc/sys/kernel/sysrq" file by typing the following command:
If it prints "1" on the screen, you're ready to go. If not, please set it to "1" by typing the following command:
- cat /proc/sys/kernel/sysrq
Let's do the magic!
- sudo echo "1" > /proc/sys/kernel/sysrq
When your Ubuntu freezes, simply press and hold Alt + SysRq, while holding the Alt and SysRq keys down, type the following keys in order, pausing for several seconds in between each key:
What the magic does is:
- reisub
r – Puts the keyboard into raw mode, taking control of it away from the X server.
e – Sends the terminate signal to all processes, asking them to end gracefully.
i – Sends the kill signal to all processes, forcing them to end immediately.
s – Flushes data from your cache to disk.
u – Remounts all file systems read-only.
b – Reboots your computer.
For further information about what commands are available, please click here.
via: HowToGeek
0 comments:
Post a Comment