115. shutdown
- Date:
2018-09
115.1. 命令格式
115.2. 所属用户
115.3. 使用指导
115.4. 参数
- -t seconds
设定在几秒钟之后进行关机程序
- -k
并不会真的关机,只是将警告讯息传送给所有只用者
- -r
关机后重新开机
- -h
关机后停机
- -n
不采用正常程序来关机,用强迫的方式杀掉所有执行中的程序后自行关机
- -c
取消目前已经进行中的关机动作
- -f
关机时,不做 fcsk 动作(检查 Linux 档系统)
- -F
关机时,强迫进行 fsck 动作
- time
设定关机的时间
- message
传送给所有使用者的警告讯息
115.5. 参考实例
1[root@zzjlogin ~]# shutdown 18:30 "computer will close"
2
3Broadcast message from root@zzjlogin
4 (/dev/pts/0) at 6:07 ...
5
6The system is going down for maintenance in 743 minutes!
7computer will close
115.6. 相关命令
- 参考:
halt reboot poweroff