shutdown
system administrationLinux/Unix
The shutdown command is one of the most frequently used commands in Linux/Unix-like operating systems. shutdown Shut down, reboot, or halt the system
Quick Reference
Command Name:
shutdown
Category:
system administration
Platform:
Linux/Unix
Basic Usage:
shutdown [options] [arguments]
Common Use Cases
Syntax
shutdown [options] [time] [message]
Options
Option | Description |
---|---|
-r |
Reboot the system |
-h |
Halt or power off the system (depends on system configuration) |
-H |
Halt the system (don't power off) |
-P |
Power off the system (stronger than -h on some systems) |
-c |
Cancel a pending shutdown |
-k |
Don't shut down, only send warning messages |
--no-wall |
Don't send wall message before shutdown |
-f |
Force file system check on reboot (not supported on all systems) |
-F |
Force file system check on reboot (alternate syntax on some systems) |
--help |
Display help message and exit |
Time Format | Description |
---|---|
now |
Execute shutdown immediately |
+minutes |
Schedule shutdown in specified number of minutes |
hh:mm |
Schedule shutdown at the specified time (24-hour format) |
Examples
How to Use These Examples
The examples below show common ways to use the shutdown
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
shutdown -h now