Home > AIX, Commands, commands, Linux > Linux – Shutdown

Linux – Shutdown

If you want to shutdown a server from the box without it coming back up again you can issue the shutdown command with the -h flag as shown below:

$ shutdown -h now
Broadcast message from root (pts/1) (Fri Jul  8 15:11:33 2011):
The system is going down for system halt NOW!

This should only be issued by the root user and will terminate all sessions to the box. To restart the box you will need to manually switch it back on. The shutdown -r now command is preferred, as this will bring the box down and restart. Use the -h command with caution and only when necessary.

Shutdown restart

If you wish to shutdown the server and for it to come back up again you will need to issue the -r flag for a restart:

$ shutdown -r now
Broadcast message from root (pts/1) (Mon Jul 11 09:59:27 2011):
The system is going down for reboot NOW!

Shutdown commands

The output of a shutdown –help is as follows:

Usage:    shutdown [-akrhfnc] [-t secs] time [warning message]
-a:      use /etc/shutdown.allow
-k:      don't really shutdown, only warn.
-r:      reboot after shutdown.
-h:      halt after shutdown.
-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") **

Further reading

These are the two commands that I use most often. For further flags for the shutdown command you can take a look at the following links (links open in a new window):


  1. June 16, 2013 at 2:03 AM

    I have read so many articles regarding the blogger lovers except this
    paragraph is actually a pleasant piece of writing, keep it up.

  2. June 20, 2013 at 6:43 AM

    Hello this is somewhat of off topic but I was wondering if
    blogs use WYSIWYG editors or if you have to manually code with HTML.

    I’m starting a blog soon but have no coding knowledge so I wanted to get advice from someone with experience. Any help would be enormously appreciated!

  3. July 8, 2013 at 11:13 PM

    Spot on with this write-up, I seriously believe that this site needs much more attention.
    I’ll probably be returning to read more, thanks for the advice!

  4. August 10, 2013 at 3:18 AM

    For hottest news you have to go to see the web and on the web
    I found this web page as a most excellent site
    for latest updates.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: