/proc/sysrq-trigger
2016-06-07 15:12
344 查看
立即重启计算机 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
立即关闭计算机 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
相关文章推荐
- 11054 - Wine trading in Gergovia
- PCI/PCIe基础——配置空间
- ServletContext中常用方法介绍
- [Ubuntu]安裝搜狗輸入法
- 剑指offer25--字符串所以排列
- Android 动画 - ScaleAnimation 缩放动画使用(附图)
- nagios安装管理
- Lasso Regression
- Linux Mysql 区分大小写[转]
- jackson annotations注解详解
- loadrunner之 学习十:面向目标的场景
- hdfs.DFSClient: Exception in createBlockOutputStre
- latex 编译tex到pdf指令
- hrtimer和work工作队列的使用
- Socket阻塞,非阻塞,同步,异步
- Keil uVision4 代码编辑器中文字符乱码问题
- tar解压过程中在console显示简易进度条
- Eclipse常用链接
- loadrunner之 学习九:分析结果,给出报告
- java 中获取ServletContext中常用的方法