Browsing this Thread:   1 Anonymous Users






ubuntu desktop automatically shutdown 定时开关机
#1
Just can't stay away
Just can't stay away


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 14:11
Top








friend links
Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories
Xoops (11)
--Modules (2)
--Themes (0)
Article (8)