SysRq
How to use SysRq
Hold Alt, press SysRq, press <command key>
, press <command key>
, ...
echo <command key> > /proc/sysrq-trigger
Command key
Command | Function |
---|---|
b | Reboot |
e | Send a SIGTERM to all processes, except for init. |
h | Help |
i | Send a SIGKILL to all processes, except for init. |
o | Power off |
r | Turns off keyboard raw mode and sets it to XLATE. |
s | Will attempt to sync all mounted filesystems. |
u | Will attempt to remount all mounted filesystems read-only. |
Disable SysRq
echo 0 > /proc/sys/kernel/sysrq
Enable all function of SysRq
echo 1 > /proc/sys/kernel/sysrq
Reboot
Alt + SysRq + r + e + k + s + u + b