how to restart by using terminal?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • varunreddy
    New Member
    • Nov 2009
    • 5

    how to restart by using terminal?

    where can i get unix tutorials that explain with tecniques ?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    use the command

    reboot

    Comment

    • vipin sharma
      New Member
      • Jul 2009
      • 16

      #3
      To reboot:
      1) reboot
      2) reboot -f

      Second command will immediately restart your system.

      Comment

      • anurag275125
        New Member
        • Aug 2009
        • 79

        #4
        There are three ways to reboot Linux system from console---
        1. # shutdown -r <minutes>
        The system will restart after <minutes>
        2. reboot
        This will immediately restart the computer
        3. Type init 6 at console
        There are 6 run-levels in init process which defines the state of the computer. Run-level 6 is the restart mode.

        You can only use these techniques when logged in as root.

        Comment

        • Time
          New Member
          • Jan 2010
          • 77

          #5
          hi ppl,
          I tried all the commands above:
          reboot
          reboot -f
          shutdown -1

          i got the message that i need to be root
          after that i wrote the command root as i had installed it several days ago
          by sudo api-get install root
          but all the three commands gave the output:
          respective command name not defined in current scope(tmpfile): 1:.
          (const int)(-1)
          Do i need to make some changes in my root?
          I get following message whenever i write root:
          *
          * W E L C O M E to R O O T *
          * *
          * Version 5.18/00b 10 March 2008 *
          * *
          * You are welcome to visit our Web site *
          * http://root.cern.ch *
          * *
          *************** *************** *************

          ROOT 5.18/00b (branches/v5-18-00-patches@22563, Mar 20 2009, 00:44:00 on linux)

          CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
          Type ? for help. Commands must be C++ statements.
          Enclose multiple statements between { }.

          Comment

          • Banfa
            Recognized Expert Expert
            • Feb 2006
            • 9067

            #6
            Did you try

            sudo reboot

            ?

            On Ubuntu (and similar distros) needing to be root doesn't mean downloading additional software as root is a built in user of the system. It means using sudo; super user do root being the ultimate super user.

            Comment

            • Time
              New Member
              • Jan 2010
              • 77

              #7
              Yeah, sudo reboot is working.
              Thanks a lot.

              Comment

              Working...