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