Linux:关机指令shutdown

来源:互联网 发布:顺源it 编辑:程序博客网 时间:2024/05/16 15:56

Linux 是多用户系统,当然不能随意关机
1.su root用户
2.sync 将内存数据保存到硬盘
shutdown now ;马上关机
shutdown +2 “this machine will be shutdown in 2 minutes “;通知所有在线用户2分钟后关机
shutdown 10:01;在10:01分关机
可能还要发送信号进行关机
init 0;关机
init 3;普通文本模式
init 5;图形界面模式
init 6;重新启动



谁在线:who
联网状态:netstat -a
后台执行的程序:ps -aux

0 0
原创粉丝点击