Identify three differences between the shutdown and init commands.
A.
init shuts a system down faster than the shutdown command.
B.
Only shutdown broadcasts a final shutdown warning to all fogged in users.
C.
init does not terminate all services normally. The shutdown command performs a t shutdown of
all services.
D.
The shutdown command can only bring the system to the single-user milestone. The command
must be used to shut the system down to run level 0.
E.
The shutdown sends a shutdown message to any systems that are mounting resource-tern that
is being shut down.
F.
The shutdown command will shut the system down and turn off power; init will only shut system
down.
Explanation:
Note shutdown:
shutdown is executed by the super user to change the state
of the machine. In most cases, it is used to change from the
multi-user state (state 2) to another state.By default, shutdown brings the system to a state where only
the console has access to the operating system. This state
is called single-user.
Before starting to shut down daemons and killing processes,
shutdown sends a warning message and, by default, a final
message asking for confirmation. message is a string that is
sent out following the standard warning message “The system
will be shut down in …” If the string contains more than
one word, it should be contained within single (‘) or double
(“) quotation marks.
Note init:
If a 0 through 6 is entered, init enters the corresponding
run level. Run levels 0, 5, and 6 are reserved states for
shutting the system down. Run levels 2, 3, and 4 are
available as multi-user operating states.
OPTIONS
0 Go into firmware.
5 Shut the machine down so that it is safe to remove
the power. Have the machine remove power, if pos-sible.
6 Stop the operating system and reboot to the state
defined by the initdefault entry in /etc/inittab.
Reference: man init, man shutdown
A, B and E.
Don’t think D is correct because you can use an ‘i’ level with the command to shutdown to run level 0 so init isn’t exclusive in getting to that run level on its own.
A,B,E
http://docs.oracle.com/cd/E23824_01/html/821-2731/hboverview-40266.html
A,B,E