• /proc/sysrq-trigger


    立即重启计算机      echo "b" > /proc/sysrq-trigger

    立即关闭计算机      echo "o" > /proc/sysrq-trigger

    导出内存分配的信息    echo "m"  > proc/sysrq-trigger        (可以用/var/log/message查看)Outputs memory statistics to the console

    导出当前CPU寄存器信息和标志位的信息     echo "p"  > proc/sysrq-trigger       (outputs all flags and registers to the console)

    导出线程状态信息        echo "t"  > proc/sysrq-trigger          (outputs a list of processes to the console)

    故意让系统崩溃            echo "c"  > proc/sysrq-trigger         (crashes the system without first unmounting file systems or syncing disks attached to the system)

    立即重新挂载所有的文件系统               echo "s"  > proc/sysrq-trigger     (attempts to sync disks attached to the system)

    立即重新挂载所有的文件系统为只读     echo "u"  > proc/sysrq-trigger     (attempts to unmount and remount all file systems as read-only)

    此外,还有两个类似于强制注销的功能

    e ---- kills all processes except init using SIGTERM

    i ---- kills all processes except init using SIGKILL

  • 相关阅读:
    Java中hashCode() 和 equals()
    【转】Java操作Excel竟然这么简单!
    SpringMVC上
    网络基础知识(2)
    网络基础知识 (1)
    线程的安全
    多线程
    字符编码ANSI和ASCII区别、Unicode和UTF-8区别
    序列化对象
    IO流_File类
  • 原文地址:https://www.cnblogs.com/zengkefu/p/5567059.html
Copyright © 2020-2023  润新知