What is the different of Linux command: "init 6" and "reboot"?

Answer -

* "reboot" is more a kernel level command and normally does not call the shutdown scripts for applications. But it will work even if you have a truncated $PATH variable.

* Use reboot for problematic situations, or to force a reboot.

* "init 6" depends a lot of the /etc/inittab files and gurantees that the shutdown scripts will be called for each application that is defined.

* Use init 6 for all normal operations.







Popular posts from this blog

Shrink you container size up to 95%.

alma linux: dnf Module yaml error: Unexpected key in data