ordinary users do not have permission to use the Shutdown command, only the root user has permission .
shutdown [ option ] time [ warning message "
System shutdown
¨ -c Cancel the previous shutdown< Span style= "FONT-SIZE:16PX; Font-family: Song body; Color: #000000 "> command. It is worth noting that when executing a font-size:16px such as "shutdown -h 11 :10" command, just Press "ctrl+c" key to interrupt the shutdown command.
¨ -f do not perform fsck (note: fsck linux a procedure for checking and repairing a file system.
¨ -H shuts down the system directly after all services are turned off.
¨- k simply sends out information to all users, but does not actually shut down.
¨ -n do not call init program shutdown, but by shutdown< Span style= "FONT-SIZE:16PX; Font-family: Song body; Color: #000000 "> do it yourself (the general shutdown program is made by Shutdown call init to implement the shutdown action), using this parameter will speed up the shutdown, However, users are not advised to use this type of shutdown.
¨ -r reboot the system.
¨ number of seconds to delay between-f< seconds > Send warning message and shutdown signal. The warning message will alert the user to save the current work.
[Time]Set how long the time after executionShutdownCommand. Time parameters arehh:MmOr+mTwo modes.hh:MmThe format represents a few minutes of executionShutdownCommand. For exampleShutdown 10:45"Indicates that it will be in10:45 execute shutdown.+m means m execute shutdown. The more special usage is now means execute shutdown. It's worth noting that this part of the argument cannot be omitted.
[ warning ] to broadcast all logged-in users ' information, this information will be displayed in the terminal of the currently logged in user.
Linux Shutdown and restart