首先,如果你在Ubunbut 12.04命令行关机,不能完全关机,系统提示disabling power management,则执行下面的语句: 1.gsettings set org.gnome.settings-daemon.plugins.power active false 然后再试试: 1.sudo shutdown now 具体什么意思我也不知道…… 然后用crontab写计划任务,由于关机需要root权限,所以应该将关机命令写到超级用户的crontab中。 执行: 1.sudo crontab -e 输入密码,在最后一行键入: 1.00 00 * * * sudo -u root shutdown -h 1 意思是在零成关机,可以自己修改。保存并退出以后,再重启服务: 1.sudo restart cron 搞定。此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/66907.html