Restart your computer now echo "B" >/proc/sysrq-trigger
Turn off the computer now echo "O" >/proc/sysrq-trigger
Export memory allocation information echo "M" > Proc/sysrq-trigger (can be viewed with/var/log/message) Outputs memory statistics to the console< /c2>
Export current CPU register information and flag bits echo "P" > Proc/sysrq-trigger (Outputs all flags and registers to the console)
Exporting thread state information echo "T" > Proc/sysrq-trigger (Outputs a list of processes to the console)
Deliberately let the system crash echo "C" > Proc/sysrq-trigger (Crashes the system without first unmounting file systems or syncing disks attached to the system)
Immediately re-mount all file systems echo "S" > Proc/sysrq-trigger (attempts to sync disks attached to the system)
Immediately re-mount all file systems as read-only echo "U" > Proc/sysrq-trigger (Attempts to unmount and remount all files systems as Read-o nly)
In addition, there are two features that are similar to forced logoff
E----kills all processes except init using SIGTERM
I----kills all processes except init using SIGKILL
/proc/cmdline
DMESG | Grep-i crash;
Cat/proc/sys/kernel/sysrq
Sysctl-w KERNEL.SYSRQ = 1;
echo C >/proc/sysrq-trigger
Class Linux system/proc/sysrq-trigger file function function