Timed Shutdowns, and Rebooting - Using command "shutdown"

 If we want to use timed shutdowns, for example, 5 minutes from now or at a specific time, and warn all logged-in users. Or you want to just shut down now with no frills.

 

Shut down immediately, with no notification to other logged-in users:

$ shutdown -h now

Shut down in 10 minutes with notifications:

$ shutdown -h +10
Shutdown scheduled for Tue 2021-11-09 11:04:43 IST, use 'shutdown -c' to cancel.

Cancel the shutdown:

$ shutdown -c

Create your own message:

$ shutdown -h +6 "Time to watch trie Tree Technologies Youtube Channel"

Rather than specifying minutes to shutdown, you may set a shutdown time in 24-hour hh:mm format. The following example shuts down the system at 11:20 P.M.:

$ shutdown -h 23:20

Reboot:

$ shutdown -r

Halt the system without powering off:

$ shutdown -H

 

Comments

Popular posts from this blog

Linux Indepth #4

How To Rebuild GRUB Configuration file

DevOps Project Contest.