1

Linux常用命令-116:shutdown

 1 year ago
source link: https://xugaoxiang.com/2022/10/11/linux-cmds-116-shutdown/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

shutdown 命令是用于关闭系统,作用等同于 halt 命令。

语法格式:shutdown [参数]

78b3dbb3569a13e8.png
# 立即关闭系统
shutdown -h now

# 立即重启系统
shutdown -r now 

# 10分钟后关机,同时发送消息给登录用户
shutdown +10 "马上关机啦,赶快保存资料,不然一天白忙啦!"

# 设定系统关闭时间也就是定时关机,如20:30
shutdown -h 20:30

# 如果之前设定了定时关机,可以取消
shutdown -c

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK