如何正确的用命令关机?
debian吧
全部回复
仅看楼主
level 9
刚开机,有事要出门,随手输上halt就走了,回来发现电脑还开着。。。显示 System halted
那么,如何以正确的姿势关机呢?
2017年01月20日 07点01分 1
level 14
poweroff
2017年01月20日 07点01分 3
和其他的关机命令有什么区别?
2017年01月20日 13点01分
level 8
按住电源两秒足够
2017年01月20日 10点01分 5
呃呃。。。电脑经不起经常这么折腾吧啊啊啊
2017年01月20日 13点01分
@乐观的lq2007 什么啊,这是触发系统自动关机[不高兴]
2017年01月20日 13点01分
@tecsun08 不是强制关机?好吧。。。
2017年01月20日 15点01分
@乐观的lq2007 强制断电那是按住电源四秒
2017年01月20日 16点01分
level 11
shutdown -h now
2017年01月20日 12点01分 6
嗯,以后用这个了
2017年01月20日 13点01分
level 3
shutdown是最安全的
2017年01月20日 12点01分 7
这几个关机命令有区别吗?为什么会有halted这种状态?
2017年01月20日 13点01分
halt应该是挂起状态,并没有断电
2017年01月20日 13点01分
@my_vc5566 就是暂停吗?那poweroff呢?
2017年01月20日 13点01分
level 7
sync加shutdown
2017年01月20日 13点01分 8
sync?
2017年01月20日 13点01分
level 9
我常用poweroff
2017年01月22日 00点01分 9
level 11
只用halt是关闭了系统,不会切断电源
2017年02月17日 14点02分 11
不一样吗?这时候如果我直接拔电源会不会损伤系统?
2017年02月18日 04点02分
回复 乐观的lq2007 :不会伤害系统,因为系统已经关闭了。linux和windows有很多不一样的地方,不能老用windows的操作思维来看待linux[吐舌]
2017年02月18日 10点02分
回复 乐观的lq2007 :如果你喜欢用halt命令的话,下次执行命令时在后面加上参数-p ,就能关闭系统的时候同时切断电源,halt -p 玩的愉快
2017年02月18日 10点02分
2017年02月18日 13点02分
level 11
init 0
2017年02月20日 00点02分 13
level 7
sudo halt -p
jessie换了systemd的坑。
2017年02月26日 18点02分 14
level 1
init 0是关机
init 6是重启
2017年02月27日 02点02分 15
init 是管理linux所有进程的父进程 , linux 运行的都是进程,所以通过init 控制关机是最有效的方法
2017年02月27日 02点02分
@圣手樂嘉 好吧。。。明白了
2017年02月27日 02点02分
level 11
sudo systemctl poweroff[不高兴]
2017年02月27日 04点02分 16
level 13
用电源键关机[小乖]
2017年03月01日 22点03分 17
[乖]
2017年03月03日 07点03分
1