Browsing this Thread:   1 Anonymous Users






ubuntu desktop automatically shutdown 定时开关机
#1
Quite a regular
Quite a regular


See User information
ubuntu 桌面版本 定时关机

vim /etc/crontab


30 02 * * * root /sbin/shutdown -h now


编辑 /etc/crontab添加一条命令:55 23 * * * root /sbin/shutdown -h now。即可实现每天23:55关机。


编辑 /etc/crontab添加一条命令:52 23 * * * root /sbin/shutdown -r 08:00。即可实现每天23:55关机,早上8点开机。

Posted on: 2020/11/24 6:11
Top








Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories