http://blog.csdn.net/choice_jj/article/details/7965676
Restart the 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
Export current CPU register information and flag bit information echo "P" > Proc/sysrq-trigger (Outputs all flags and registers to the console)
Export 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 "system without"-unmounting file systems or S Yncing disks attached to the system)
Immediately reload all file systems echo "S" > Proc/sysrq-trigger (attempts to sync disks attached to the system)
Immediately reseat all file systems as read-only echo "U" > Proc/sysrq-trigger (Attempts to unmount and remount all file systems as Read-only)
In addition, there are two features that are similar to mandatory logoff
E----kills all processes except init using Sigterm
I----kills all processes except init using SIGKILL