Linux-logoff, shutdown, restart

Source: Internet
Author: User

  
Logout: Logout
Logout Logoff is the relative operation of the landing, after landing the system, to leave the system, the user can simply release the Logout command:

[[email protected] root] #logout

Red Hat linuxrelease 9 (shike)

Kernel 2.4.20.8 on an i686

Login:← back to the landing screen


  
Shutdown or restart: shutdown

The shutdown command closes all programs and restarts or shuts down according to the user's needs. 

  To shut down immediately:

  -h parameter to shut down the system immediately

[[email protected] root] #shutdown –h now← requires the system to be shut down immediately

  Specify Shutdown time:

  The time parameter can specify when to shut down, or set how long to run the shutdown command

[[email protected] root] #shutdown now← shut down immediately

[[email protected] root] #shutdown +5←5 minutes after shutdown

[[email protected] root] #shutdown 10:30← shut down at 10:30

  Automatic Restart after shutdown:

-R parameter set shutdown after reboot

[[email protected] root] #shutdown-R now← immediately shut down the system and reboot

[[email protected] root] #shutdown-R 23:59← Specify restart at 23:59


  
Restart your computer: reboot

As the name implies, the reboot command is used to reboot the system. The commonly used parameters are as follows:

-F parameter: Shut down the system and restart the computer by shutting down the normal program.

-I parameter: Close all network interfaces before restarting.

Although the reboot command has a parameter that can be used, it is generally only necessary to run the reboot command separately.

Linux-logoff, shutdown, 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.