All technological notes.
Shutdown/Power Off
shutdown delay
Commands
| CMD | DESC |
|---|---|
poweroff |
Turns off the system |
shutdown now |
Turns off the system immeidately |
shutdown +5 |
Shutdown in 5 minutes |
systemctl poweroff |
Turns off the system |
poweroff is the symbolic link to systectl equivalentsReinitializes the entire boot process.
Important:
systemctl restart {service-name} to restart services rather than reboot the whole system.| CMD | DESC |
|---|---|
reboot |
Reboots the system immediately |
shutdown -r now |
Reboots the system immediately |
shutdown -r 22:00 |
Reboots the system at 10pm |
systemctl reboot |
Reboots the system immediately |
reboot is the symbolic link to systectl equivalents| CMD | DESC |
|---|---|
halt |
Halt the system |
shutdown --halt 22:00 |
Halt the system at 10pm |
shutdown --halt +5 |
Halt the system after a five-minute delay |
shutdown --halt +5 "message" |
Halt the system after a delay and append a message to all users |
shutdown -c |
Cancel a timed shutdown |
systemctl halt |
Halt the system |
Suspend (Sleep)
Use Case:
Hibernate(冬眠) the system:
swap partition or file.| CMD | DESC |
|---|---|
systemctl suspend |
Suspend the system |
systemctl hibernate |
Hibernate the system |
systemctl hybrid-sleep |
Both suspends and hibernates the system |