Class Linux system/proc/sysrq-trigger file function function

Source: Internet
Author: User

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

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.