转 Crash ? you should try magic keys

如果ubuntu系统没反应了,俗称死机了,你可以试试魔术键

人生自古谁无死 ? 没死过机那就装个compiz 玩玩,,Smile 一般的进程死还好办,kill, fuser 就行了,compiz 这种是死的透透的,键盘没反应,没法切到控制台(ctr+alt+f1), 假如有网络环境,可以从别的机子ssh上来,kill session ,可如果是单机,那基本没辙了,只有reset .我的机子reset 还坏了,只能冷启动。偶然在网上看到一个老外的blog,,给出这个 magic keys ,可以 ( gracefully ) 优雅的重启或者 bring it back Smile 

ALT + sysrq + 下边列出来的键 

‘k’ - Secure Access Key (SAK) Kills all programs on the current virtual console. 
强烈推荐这个,功能似乎是重启 session,类似于( crl+alt+backspace ) 

下边的我没都试,有的管用,有的没啥反应,大多要重启一次机子,谁有那精神毅力,请原谅 

‘r’ - Turns off keyboard raw mode and sets it to XLATE. 
‘b’ - Will immediately reboot the system without syncing or unmounting your disks. 
‘c’ - Will perform a kexec reboot in order to take a crashdump. 
‘o’ - Will shut your system off (if configured and supported). 
’s’ - Will attempt to sync all mounted filesystems. 
‘u’ - Will attempt to remount all mounted filesystems read-only. ‘p’ - Will dump the current registers and flags to your console. 
‘t’ - Will dump a list of current tasks and their information to your console. 
‘m’ - Will dump current memory info to your console. 
‘v’ - Dumps Voyager SMP processor info to your console. 
‘0′-’9′ - Sets the console log level, controlling which kernel messages will be printed to your console. 
‘f’ - Will call oom_kill to kill a memory hog process 
‘e’ - Send a SIGTERM to all processes, except for init. 
‘i’ - Send a SIGKILL to all processes, except for init. 
‘l’ - Send a SIGKILL to all processes, INCLUDING init. 

 

 

原文地址:

http://hi.baidu.com/zhoun912/blog/item/f658df2c28e6c4ef8a1399ac.html

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值