A-Z Popular Blog Encyclopedia Search »
Technology
 Advertisements

13 Useful Shutdown Commands in Linux

 ,
The shutdown command is used to power-off, halt or reboot a linux machine. The following are commonly used variations of the shutdown command including several alternative commands.

shutdown

The default behavior of shutdown is usually to schedule shutdown for one minute.

shutdown -c

Cancel a pending shutdown.

shutdown 23:00

Schedule a shutdown for 11 PM.

shutdown +15

Schedule a shutdown for 15 minutes from now.

shutdown now

Shutdown immediately.

shutdown +5 "Save now!"

Shutdown in 5 minutes and broadcast the message "Save now!" to all terminals.

shutdown -H

Halt the machine. This is traditionally a drastic type of shutdown similar to a hard power-off. However, this may be implemented as a normal and immediate shutdown.

shutdown -P

Poweroff the machine with shutdown. This is usually the default but can be specified to remove any ambiguity.

shutdown -r

Reboot the machine.

halt -f

Halts the machine without notifying any processes. This is perhaps the most immediate and drastic way to halt a linux box. The -f stands for force.

poweroff

Another command to power-off a linux box. Accepts the -f flag for a forced power-off.

reboot

Reboot the box. Accepts the -f flag. Does not allow for a scheduled reboot as with the shutdown command.

Notes

If root privileges are required to shutdown on your box you will have to prefix the commands above with sudo when you aren't logged in as root.

Linux Commands

This is the complete list of articles we have written about linux commands.
ls
shutdown
xargs
If you enjoyed this page, please consider bookmarking Simplicable.
 

Linux Commands

A list of unusually useful linux commands with brief explanations.

Linux Processes

The basic types of linux process.

ls

A quick reference of useful ls commands.

xargs

A list of xargs commands for linux you might actually use.

Application Server

An overview of application server with examples.

Transcoding

The definition of transcoding with examples.

Static Content

The definition of static content with examples.

Dynamic Content

The definition of dynamic content with examples.

Computer Science Examples

The definition of computer science with examples.

Command Prompt

The definition of command prompt with examples.
The most popular articles on Simplicable in the past day.

New Articles

Recent posts or updates on Simplicable.
Site Map