Find the answer to your Linux question:
Results 1 to 7 of 7
Is there a command to restart FC5 through the terminal?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! jojojo's Avatar
    Join Date
    May 2005
    Location
    Kuala Lumpur, Malaysia
    Posts
    99

    Restart through terminal


    Is there a command to restart FC5 through the terminal?

  2. #2
    Just Joined!
    Join Date
    Apr 2006
    Location
    UK, Devon
    Posts
    41
    The command your looking for is...........

    Code:
    reboot

  3. #3
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    As root,
    Code:
    #shutdown -r now
    or
    Code:
    #reboot
    In the first example, you can change "now" to a number of seconds to wait until it reboots. See the man page for more details.
    Stand up and be counted as a Linux user!

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! jojojo's Avatar
    Join Date
    May 2005
    Location
    Kuala Lumpur, Malaysia
    Posts
    99
    Ok. Thanks mate.

  6. #5
    Banned
    Join Date
    Jul 2004
    Posts
    947
    Code:
    init 6
    will also restart. As shutdown and restart are normally a symlink to that command.
    also sometimes
    telinit 6

  7. #6
    Just Joined! jojojo's Avatar
    Join Date
    May 2005
    Location
    Kuala Lumpur, Malaysia
    Posts
    99
    What is a symlink and telinit 6?

  8. #7
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    A symlink (symbolic link, also called a soft link) is like a shortcut--it just points to another file. Check out the Wiki entry for symbolic links, and follow the link from the second sentence on that page to the entry for hard links to get a good feel for links in general.

    telinit 6 (synonym for init 6) call runlevel 6 which is the reboot runlevel. Basically, the runlevel daemon will run the scripts from the runlevel 6 directory (/etc/rc6.d in Debian-like systems, may be different for RedHat-like systems), which are listed in the proper order to stop all the OS processes and tell the BIOS to restart the computer.
    Stand up and be counted as a Linux user!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •