Magic SysRq key

10 views
Skip to first unread message

Dilawar Singh

unread,
Apr 11, 2018, 2:15:12 AM4/11/18
to Web and Coding Club IIT Bombay
https://fedoraproject.org/wiki/QA/Sysrq#How_do_I_enable_the_magic_SysRq_key.3F

On most linux system it is enabled and mapped to PrintScreen key. If `cat /proc/sys/kernel/sysrq` shows non-zero number (preferebly 1); then pressing `alt+PrintScr+f` will kill any processes hogging memory immediately. It is incredibly useful when system is pegged by a some process taking most of CPU/RAM.

To enable it do the following:

sudo sysctl -w kernel.sysrq=1

best,
Dilawar
Reply all
Reply to author
Forward
0 new messages