关机命令
shutdown -P now
或者指定关机任务等待时间如 shutdown -P 3 数字3代表3分钟,
或者指定具体的关机时间 shutdown -P 20:00
windows下亦有shutdown 命令 语法有所不同
poweroff
init 0
halt -p / halt -h
重启命令
reboot
shutdown -r now 或者指定等待时间 或者 指定具体的时间
init 6