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!