Activating and deactivating the magic sysrequest feature
![]()
Use the sysrq procfs attribute to activate
or deactivate the magic sysrequest feature.
Procedure
Issue the following command to activate the magic sysrequest function:
echo 1 > /proc/sys/kernel/sysrq
Issue the following command to deactivate the magic sysrequest feature:
echo 0 > /proc/sys/kernel/sysrq
Alternatively you can use sysctl to activate and deactivate the
magic sysrequest feature. To check how the magic sysrequest function is set,
issue:
# sysctl kernel.sysrq kernel.sysrq = 1In Red Hat® Enterprise Linux® 9.2 the magic sysrequest function is turned on by default. To turn it off using sysctl, issue:
# sysctl -w kernel.sysrq=0