Shutting Down and Restarting


The graphical Fedora Core 4 login screen provides an easy way to shut down or restart your Linux computer system safely. However, sometimes the ability to shut down or restart from the command line is important. For example, if a server system becomes overloaded by a runaway database request or a coordinated web attack, you might want to be able to restart it from a remote location through a telnet or ssh login.

The shutdown command shuts down or restarts a running Linux system from the command line. shutdown is typically used in one of the following two ways:

 shutdown -h time shutdown -r time 

Using shutdown with the -h option halts a running Linux system. Using shutdown with the -r option restarts a running Linux system. Replace time with one of the following:

  • The word now to indicate that you want to shut down or restart immediately

  • A time in 24-hour hh:mm format, where hh is the hour and mm is the minute at which the system should shut down or restart

  • An offset in minutes preceded by a plus sign, such as +30, to indicate that the system should shut down or restart after a specific period of time measured in minutes

For example, to immediately reboot a running Linux system, call the shutdown command with the -r option and the now argument:

 /sbin/shutdown -r now 

Always Shut Down Properly

You should always use either the shutdown command or the shut down and restart tools at the graphical login prompt to stop or restart your Linux system. Using the power switch or reset button without first shutting down properly can cause data loss.




    SAMS Teach Yourself Red Hat(r) Fedora(tm) 4 Linux(r) All in One
    Cisco ASA and PIX Firewall Handbook
    ISBN: N/A
    EAN: 2147483647
    Year: 2006
    Pages: 311
    Authors: David Hucaby

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net