Linux如何定时关机
问题
Linux下如何定时关机?
回答
使用shutdown
命令可以实现定时关机。
shutdown -h 23:00 # 在23:00关机
shutdown -h +60 # 60分钟后关机
shutdown -c # 取消定时关机
shutdown -h now # 立即关机
需要管理员身份运行或者加上sudo
。
最后修改于 2025-05-03
Linux下如何定时关机?
使用shutdown
命令可以实现定时关机。
shutdown -h 23:00 # 在23:00关机
shutdown -h +60 # 60分钟后关机
shutdown -c # 取消定时关机
shutdown -h now # 立即关机
需要管理员身份运行或者加上sudo
。
最后修改于 2025-05-03