Here is the value set in Ubuntu 22.04
:
root@test:~# cat /proc/sys/kernel/sysrq
176
I can't find the value from this link:
https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
What does it mean?
Here is the value set in Ubuntu 22.04
:
root@test:~# cat /proc/sys/kernel/sysrq
176
I can't find the value from this link:
https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
What does it mean?
For interpretation of the SysReq value you need to convert it into binary,
then check which 'bits' are
1
telling whether the corresponding function is enabled.Typing e.g.
... at the bash prompt will tell the bits prepended with a
0b
(for "binary").Note: start from the right with the value
1
for the first bit, then2
for the next, doubling the value for each step left.If you wish to have the actual bitvalues printed, then it requires some more code;
which executed shows this:
So,
176
means that... functions are enabled.
Note: 16+32+128 = 176