Linux关机、重启命令

关机
 
shutdown -h 0 #<==O秒后关机
shutdown -h now #<==现在关机
shutdown -h 10 #<==10分钟后关机
shutdown -h 23:20 #<==23:20分关机
shutdown -c #<==取消shutdown关机命令
init 0 #<==立马关机(切换运行级别为0,推荐使用)
halt #<==立马关机
poweroff #<==立马关机
 
 
重启
 
shutdown -r now #<==现在重启
shutdown -r 10 #<==10分钟后重启
shutdown -r 23:20 & #<==23:20分重启,加&符号代表把该命令转到后台处理
reboot #<==立马重启(推荐使用)
init 6 #<==立马重启(切换运行级别为6,推荐使用)
 

猜你喜欢

转载自www.cnblogs.com/liang545621/p/9398652.html