Linux operating system suspend, hibernate, shutdown related commands __linux

Source: Internet
Author: User

Suspend is a power-saving mode, the system will be the machine's hard disk, monitor and other external devices to stop working, while the CPU, memory is still working, waiting for users to wake up at any time, to wake up again need to press the keys on the keyboard several times.

Body Sleep is a more power-saving mode, it will be in memory of the data stored in the hard disk, so that the CPU also stopped working, when used again to press the switch machine key, the machine will revert to your execution of the state of hibernation, and do not have to perform the startup operating system complex process.

Standby is to keep the currently running data in memory, the machine only power the memory, while the hard disk, screen and CPU 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:

Halt

Init 0

Shutdown-h now

Shutdown-h 0


Timer/delay Shutdown:

Shutdown-h 10:00

Shutdown-h +30//unit for minutes


Reboot:

Reboot

Init 6

Shutdown-r now


Dormancy:

sudo pm-hibernate

echo "Disk" >/sys/power/state

sudo hibernate-disk


Standby/Suspend:

sudo pm-suspend

sudo pm-suspend-hybrid

echo "Mem" >/sys/power/state

sudo hibernate-ram

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.