Linux basic Commands-logoff, shutdown, reboot

Source: Internet
Author: User

One, logout, shutdown, restart

Unregister the system's logout command

1,logout Logout is the relative operation of landing, after the landing system, to leave the system, the user simply issued the Logout command can be:

[Root@localhost Root] #logout

Red Hat linuxrelease 9 (shike)

Kernel 2.4.20.8 on a i686

Login:← back to the landing screen

2, shutdown or reboot of the shutdown command

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

The parameter description is as follows:

L Shutdown immediately:-H parameter let the system shut down immediately. Examples are as follows:

[root@localhost Root] #shutdown –h now← requires the system to shut down immediately

l Specifies the shutdown time: The time parameter specifies when to shut down, or how long to run the shutdown command, as follows:

[root@localhost Root] #shutdown now← shut down immediately

[root@localhost Root] #shutdown +5←5 minutes after shutdown

[root@localhost Root] #shutdown 10:30← shutdown at 10:30

L Auto reboot after shutdown:-r parameter setting shutdown and reboot. Examples are as follows:

[Root@localhost Root] #shutdown-R now← immediately shut down the system and reboot

[Root@localhost Root] #shutdown-R 23:59← Specifies to reboot at 23:59

3, restart the computer's reboot command

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

L-f parameter: Shut down the system and restart the computer directly if you do not run off of the normal program.

L-i: Turns off all network interfaces before restarting.

Although the reboot command has an argument to use, it is generally only necessary to run the reboot command alone.

Related Article

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.