Linux命令学习(1)-关机、重启、注销

shutdown

shutdown -h +1 (1分钟后关机)

shutdown -h now (现在关机)

shutdown -h 11:00 

shutdown -r now  (现在重启)

h  halt 关机


halt/poweroff/reboot(通常不带任何参数)

halt和poweroff是reboot的两个参数

0(关机运行级别)----halt       命令  init 0 :关机

6(重启运行级别)----reboot  命令  init 6 :重启

扫描二维码关注公众号,回复: 5945365 查看本文章

*存储在/etc/inittab


Ctrl+c:取消


logout  注销

exit 

Ctrl+D

image.png




猜你喜欢

转载自blog.51cto.com/14207315/2381364