shutdown

Shutdown or restart linux

Syntax
       shutdown [options] when [message]

Options
   -c     Cancel a shutdown that is in progress.

   -f    Reboot fast, by suppressing the normal call to fsck
         when rebooting.
   -h    Halt the system when shutdown is complete.

   -k    Print the warning message, but suppress actual shutdown.

   -n    Perform shutdown without a call to init.

   -r    Reboot the system when shutdown is complete.

   -t sec 
         Ensure a sec-second delay between killing processes
         and changing the runlevel.

Examples
 Shutdown immediately:
   shutdown -h now

 Reboot immediately:
   shutdown -r now 

 Shutdown at 8 pm:
   shutdown -h 20:00

 Shutdown in 10 minutes: 
   shutdown -h +10 

"The illegal we do immediately. The unconstitutional takes a little longer" ~ Henry Kissinger

Related linux commands:

logout - Exit a login shell.
Equivalent Windows command: SHUTDOWN


 
Copyright © SS64.com 1999-2019
Some rights reserved