Linux Shutdown and restart

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.