Features of/proc/sysrq-trigger files

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.