linux关机命令
我們在使用linux的時候,很多人經常會和window一樣的關機,其實這樣的關機方法對于linux是很不好的,這樣不利于linux,還可能會導致有些文件的丟失,那么在命令中有哪些是關機的呢?
linux下常用的關機命令有:shutdown、halt等;重啟命令一般使用:reboot。
重啟命令
reboot 重啟
(以下幾個一般是root用戶)
shutdown -r now 立刻重啟
shutdown -r 10 過10分鐘自動重啟
shutdown -r 22:22 在時間為22:22時候重啟
shutdown -c 取消重啟
關機命令
halt 關機
poweroff 立刻關機
shutdown -h now 立刻關機
shutdown -h 5 5分鐘后自動關機
我個人一般重啟用reboot命令,關機一般用shutdown -h now,個人習慣,其實都可以,就是不要像window那樣關機就好
轉載于:https://www.cnblogs.com/Song-Timfa/p/10724512.html
總結
- 上一篇: 实现call和apply
- 下一篇: Linux之加密和安全