Linux 常用命令—关机、重启、注销

关机
shutdown -h now (即刻关机)

shutdown -h 10 (10分钟后关机)

shutdown -h 11:00 (11:00关机)

shutdown -h +10 (预定时间关机(10分钟后))

shutdown -c (取消指定时间关机)

init 0 (立刻关机)

telinit 0 (关机)

poweroff (关机)

halt (关机)

注销

sync (buff数据同步到磁盘)

logout (退出登录Shell)

重启

shutdown -r now (重启)

reboot (重启)

init 6 (重启)

shutdown -r 12:00 (定时重启)

shutdown -r 5 (五分钟后重启)

猜你喜欢

转载自blog.csdn.net/rfdjds/article/details/120179901