linux下的關機命令和重啓命令

1.關機命令

  1. halt 立即關機
  2. poweroff 立即關機,且會斷電源
  3. shutdown -h now 立即關機
  4. shutdown -h time time時間後關機
  5. init 0 立即關機

shutdown -c 取消前面用shutdown設置的關機命令

2.重啓命令

  • reboot 立即重啓
  • init 6 立即重啓
  • shutdown -r now 立即重啓

記住這些常用關機重啓命令就可以了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章