click below
click below
Normal Size Small Size show me how
Shutdown
Powering off safely
Question | Answer |
---|---|
Shut the system down IMMEDIATELY | shutdown - h now - halt - init 0 |
Shut the system down immediately and REBOOT | shutdown - r now - reboot - init 6 |
Shut the system down in a designated amount of time and send a message | shutdown -h {time message} |
Example: Shut the system down in 10 minutes and send a message "The system is going down in 10 minutes" | shutdown -h +10 The system is going down in 10 minutes |
Shut the system down and REBOOTin a designated amount of time and send a message | shutdown -r {time Message} |
Example: Shut the system down and REBOOT in 15 minutes and send a message "The system is rebooting in 15 minutes" | shutdown -r +15 The system is rebooting in 15 minutes |
Reboot the system at midnight and send a message "System reboots at midnight" | shutdown -r 24:00 System reboots at midnight |
shut the system down at 10:00 PM | shutdown -h 22:00 |
Terminate the shutdown process | shutdown -c - Ctrl+c |
Reboot the system and skip the fsck utility on reboot | shutdown -rf |
shutdown parameter that stands for FAST REBOOT | -f |
Send a warning message, but does not actually shut down | shutdown -k |
Example: Send the message "Please log out of the system" but do not actually shut the system down | shutdown -k Please log out of the system |
Example: Send the message "Please log out of the system" but do not actually shut the system down - terminate the message after message is sent | shutdown -hk Please log out of the system |
Use the ---- file to shut down the system | /etc/shutdown.allow |
The most common use of the shutdown -a switch is to edit this file | /etc/inittab Add the -a switch to the CTRL-ALT-DELETE section |
When the -a switch is present in the /etc/inittab file, shutdown reads the: | /etc/shutdown.allow file |
If a listed user or root is logged into the system | The system shuts down |
If a listed user or root is NOT logged into the system | Shutdown is not allowed |
There are no shutdown restrictions if this file does not exist | /etc/shutdown.allow |
When using the shutdown command to shut down a computer, the system does the following: | 1. Sends a SIGTERM message to running programs to allow them to close - 2. Notifies logged on users that the shutdown process has started and the length of time before shut down |
When using the shutdown command to shut down a computer, the system does the following: | 3. Blocks users from logging into the system - 4. Uses init and /etc/inittab to shut down processes and the system |
Command will reread the entries in /etc/inittab and make the settings active | init q |
File contains a list of users who are able to shut down the system | /etc/shutdown.allow |
Prevent fsck from running after the reboot and allow the system to boot faster | shutdown -f |
Force fsck to run on reboot | Shutdown -F |