灌溉梦想,记录脚步

/proc/sysrq-trigger文件的强大功能

/proc/sysrq-trigger该文件能做些什么事情呢?

# 立即重新启动计算机 (Reboots the kernel without first unmounting file systems or syncing disks attached to the system)
echo “b” > /proc/sysrq-trigger

# 立即关闭计算机(shuts off the system)
echo “o” > /proc/sysrq-trigger

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

# 导出当前CPU寄存器信息和标志位的信息(Outputs all flags and registers to the console)
echo “p” > /proc/sysrq-trigger
继续阅读 »