當然要使用前記得先 enable 它, 平常是 disable 的
# echo 1 > /proc/sys/kernel/sysrq
使用方法如下
# 立即重新開機, 但不會 sync 和 umount
echo "b" > /proc/sysrq-trigger
# 立即關機
echo "o" > /proc/sysrq-trigger
# dump 記憶體分配的 information (可以使用 /var/log/message 查看)
echo "m" > /proc/sysrq-trigger
# Will dump the current registers and flags to your console. (應該是跟CPU相關的訊息)
echo "p" > /proc/sysrq-trigger
# Will dump a list of current tasks and their information to your console.
echo "t" > /proc/sysrq-trigger
# Will perform a kexec reboot in order to take a crashdump.
echo "c" > /proc/sysrq-trigger
其他功能可以查閱 Linux kernel 下 Documentation/sysrq.txt 文件
1 comment:
http://louboutinmart.co.uk One goose, representing Benito Mussolini, agrees with him and gives the Nazi salute. http://dkgoose.com Wozyhyuwj [url=http://csrhelix.com]canada goose jakke[/url]
mwlfng 186691 [url=http://www.chilliwackbombersoutlet.com]picture of a canada goose[/url] 449248 [url=http://www.beatsbydreaonsales.com]cheap dr dre beats[/url]
Post a Comment