reboot和init 6之間的區別
Linux中重啟的兩個命令:reboot和init 6之間的區別
init命令用於改變作業系統的執行級別。
Init 6是重新啟動機器。
reboot也是重新啟動機器。
那麼這兩個命令到底有什麼區別呢?
對這兩個操作使用man命令看到的內容如下:
"init 6" 基於一系列/etc/inittab檔案,並且每個應用都會有一個相應shutdown指令碼。
'init 6' 呼叫一系列shutdown指令碼(/etc/rc0.d/K*)來使系統優雅關機;
'reboot'並不執行這些過程,reboot更是一個kernel級別的命令,不對應用使用shutdown指令碼。 .
我們應該在通常情況下使用 init 6.
reboot - reboot performs a sync(1M) operation on the disks, and then a
multi- user reboot is initiated. See init(1M) for details.
init 6 Stop the operating system and reboot to the
state defined by the initdefault entry in
/etc/inittab.
在出問題的狀況下或強制重啟時使用reboot.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25373498/viewspace-2134414/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- shutdown,halt,reboot,init(轉)boot
- __new__和__init__的區別
- 敏捷和 Scrum 之間的區別敏捷Scrum
- Statement和PreparedStatement之間的區別
- @Bean和@Component之間的區別?Bean
- MVC,MVP和MVVM之間的區別MVCMVPMVVM
- Python __new__ 和 __init__ 的區別Python
- __new()__ 與 __init()__的區別
- querySelector和getElementById之間的區別
- tali -f 和 tail -F 之間的區別AI
- 公共雲和私有云之間的區別
- 【轉】理解 CI 和 CD 之間的區別
- cookie、 sessionStorage 、localStorage之間的區別和使用CookieSession
- python類中super()和__init__()的區別Python
- Linux系統 init 6 重啟不了,reboot -n 卻可以重新啟動Linuxboot
- Linux和windows系統之間的區別LinuxWindows
- CI和CD之間的真正區別 -Fire CI
- Kata和Kaizen之間的區別是什麼?AI
- Git 和 SVN 之間的五個基本區別Git
- GIT和SVN之間的五個基本區別Git
- 不同JDK版本之間的intern()方法的區別-JDK6 VS JDK6+JDK
- context-param和init-param區別Context
- Vue中computed、methods和watch之間的區別Vue
- 淺談querySelector和getElementById之間的區別
- 函式節流和去抖之間的區別函式
- [譯] Jquery中 .bind() .live() .delegate() 和 .on() 之間的區別jQuery
- Python面試之理解__new__和__init__的區別Python面試
- Oracle與OpenJDK之間的區別OracleJDK
- PrepareStatement與Statement之間的區別REST
- ASP.NET Core中GetService()和GetRequiredService()之間的區別ASP.NETUI
- 尋源和採購之間的區別是什麼?
- Android Bitmap 與 Drawable之間的區別和轉換Android
- nodejs和js之間有什麼區別?NodeJS
- Python中__new__和__init__的區別與聯絡Python
- CST和GMT時間的區別
- select、poll、epoll之間的區別
- JavaSE、JavaEE、JavaME之間的區別概述Java
- GCD與NSOperation之間的區別GC