Beginners level course:day to day with Linux

Source: Internet
Author: User

Turn off Linux (shutdown)at this point you should have installed Linux, and you are neither right to see what you have. When you are finished, you must turn off the computer. In fact, there is a computer that never shuts down. The illusion that your ISP (Network service provider) shuts down every night! The internet is 24/7 of the work, so this is unrealistic. But there may be users who just turn off the monitor. It's like you have occasional breaks, so we may also let our computers rest for a while. For this problem, we can use the shutdown command to implement.
Anyone who has ever used a computer knows that if you shut down or power down before you save your work, the data will be lost. Initially, if you shut down Linux incorrectly or have an untimely storm that caused a power outage, this could cause significant damage to your Linux file system. These do not happen very often today, but you will use the shutdown command whenever you want to turn off your computer. If you don't, Linux will tell you-Linux will automatically check your hard drive when you use your computer again. If you have a big hard drive, you can go away and make a sandwich for yourself, because it will take some time. Linux also automatically runs routines to check the disk at every time. During the time of the Linux self-check, you can make sandwiches for yourself. turn off a single computerThe most common way to turn off a Linux system with only one user is to run the following command with root privileges:Shutdown-h NowYou can use this command to shut down the system at this point relative to shutting down the system later. Linux is shutting down nowIt will start shutting down the program that your computer is using and you can see all this happening. Because Linux is a transparent system. It will let you see what it is doing. It will not give you a simple message to let you wait and another tells you that you can now shut down the computer. If something is causing the problem, the system will tell you when it starts and shuts down. This way, if you have a problem, you can track it. If you don't know how to solve this problem, you can tell another person what you see and he/she will help you. using the shutdown command, you must wait for the following message to appear:

System halted
Power down before shut off the computer.
re-booting the computer

Restart your system

Shutdown-r
Now

If you have a dual-boot system installed and you want to use another system, why do you want to do it? You need to use this command. You will get information similar to the-H (Halt) Option:
System going for reboot
now
The
basic reason behind these messages is that Linux is conceived as a network operating system. You have users on workstations that are busy doing their work through the Internet. The last part of the shutdown command now is possible for a single user's home PC, but on a network system this part will be changed to imply time. This way users have the opportunity to end their work before system downtime is maintained. Using ' Now ' in the network, the person sending the command may have a mental problem.

the next time you turn off the system, you may try to use some event options instead of now. For example, you might want to turn off your computer at a given time.
shutdown-h 20:01
the command will shut down the computer at 8:01 in the evening. You can also try:
shutdown-h +5
the command will shut down the computer within 5 minutes.
Now you know the right way to shut down your Linux system.

Original address: http://www.linux.org/threads/day-to-day-with-linux.4091/

Beginners level course:day to day with Linux

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.