Command used to execute system shutdown
shutdown command is used to shut down the system. The shutdown command can shut down all programs and restart or shut down according to the user's needs.
shutdown(option)(parameter)
-c: When executing the "shutdown -h 11:50" command, just press the + key to interrupt the shutdown command;
-f: Do not execute fsck when restarting;
-F: Execute fsck when restarting;
-h: Shut down the system;
-k: Just send information to all users, but will not actually shut down the machine;
-n: Do not call the init program to shut down, but shutdown itself;
-r: Restart after shutdown;
-t<number of seconds>: How many seconds to delay between sending a warning message and deleting the message.
Specify to shut down immediately now:
shutdown -h now
Specify 5 minutes to shut down the computer and send a warning message to the logged-in user:
shutdown +5 "System will shutdown after 5 minutes"