Linux (Ubuntu) Hibernate, suspend, standby, Shutdown command detailed introduction _linux

Source: Internet
Author: User

Here's a few commands for Linux to clean up, there are: Hibernate, suspend, standby, shutdown and so on several commands of the difference and how to achieve.

hibernation is a more power-saving mode that stores data in memory on a hard disk and all devices stop working. When you need to press the switch key when you use it again, the machine will revert to your state of performing hibernation without having to perform the complex process of starting the operating system again.

Standby (suspend) is to keep the currently running data in memory , the machine only power to memory, while the hard disk, screen and CPU and other parts will stop powering. Because the data is stored in fast memory, it is faster to enter the wait state and wake up. However, the data is stored in memory, and loss of data is caused by a power outage.

Turn off the machine immediately:

sudo halt
sudo init 0
sudo shutdown-h now
sudo shutdown-h 0

Timer/delay Shutdown:

sudo shutdown-h 19:30
sudo shutdown-h +30   # #单位为分钟

Reboot:

sudo reboot
sudo init 6
sudo shutdown-r now

Dormancy:

sudo pm-hibernate

echo "Disk" >/sys/power/state

sudo hibernate-disk

Standby (Pending):

sudo pm-suspend
sudo pm-suspend-hybrid

echo "mem" >/sys/power/state

sudo hibernate-ram

Thank you for reading, I hope to help you, thank you for your support for this site!

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.