Shutdown
sudo shutdown -h now
sudo halt
sudo init 0
sudo shutdown -r (time) (message)
Ex: sudo shutdown -r 18:45 "Server is going down for maintenance"
sudo shutdown -h 18:45 "Server is going down for maintenance"
sudo shutdown -h 0
sudo poweroff
Restart
sudo reboot
sudo shutdown -r now
sudo init 6
sudo shutdown -h (TIME) (MESSAGE)
Hibernate
sudo rtcwake -m [type of suspend] -s [number of seconds]
Ex: sudo rtcwake -m disk -s 60
The command suspends your system to disk (hibernates it) and wakes it up 60 seconds later.
Ex: sudo rtcwake -m no -l -t $(date +%s -d ‘tomorrow 06:30’)
Computer wake up at 6:30am tomorrow but not suspend immediately (assuming your hardware clock is set to local time).
MAN
Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-P: halt action is to turn off power.
-H: halt action is to just halt.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **