Beginners Level Course: Day to Day with Linux

Source: Internet
Author: User

Beginners Level Course: Day to Day with Linux
Shut down Linux. At this moment, you should have installed Linux, and you are looking at what you have. When you end, you must turn off the computer. In fact, there are computers that never shut down. Assume that your ISP (Network Service Provider) shuts down every night! The Internet is 24/7 of work, so this is unrealistic. However, there may be users who just turn off the monitor. It's like you have occasional breaks, so we may also have our computers resting for a while. To solve this problem, we can use the shutdown command.

People who have used computers know that data will be lost if you shut down or have a power outage before the storage is complete. Initially, If you mistakenly shut down Linux or an out-of-date storm caused a power outage, it would cause a lot of damage to your Linux File System. These do not happen frequently today, but the shutdown command is used whenever you want to turn off your computer. If you do not do this, Linux will tell you-when you use your computer again, Linux will automatically check your hard disk. If you have a large hard disk, you can leave and make a sandwich for yourself, because it will take some time. Linux runs routine checks on disks at intervals. During Linux self-check, you can cook sandwiches for yourself.Disable a single computerThe most common way to shut down a Linux system with only one user is to run the following command with the root permission: shutdown-h now, you can use this command to shut down the system at this time. Now that Linux is shutting down, it will start to shut down the program that your computer is using and you can see it all happen. Because Linux is a transparent system. It will show you what it is doing. It will not give you a simple message to wait and the other will tell you that you can close the computer now. If something causes a problem, the system will tell you the startup and shutdown times. In this way, if you have a problem, you can trace it. If you do not know how to solve this problem, you can tell another person that he/she will help you. To use the shutdown command, you must wait until the following message appears:


System halted
Power down before you shut off the computer.
Re-booting the computer
Restart your system
Shutdown-r now
If you have already installed a dual-boot system and want to use another system (why do you want to do this ?) 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 who are busy working on the workstation through the network. The last part of the shutdown command now can be used for a single user's home PC, but on a network system this part will be changed to the implied time. In this way, users can have the opportunity to end their work before the system is shut down for maintenance. If you use 'now 'in the network, the sender of the command may have mental problems.
When the system is shut down next time, you may try to use some event options instead of now. For example, you may want to shut down your computer at a given time.
Shutdown-h 20:01
The command will shut down the computer. You can also try:
Shutdown-h + 5
This command will shut down the computer within five minutes.
Now you know the correct method to disable your Linux system.

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.