Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: What is the difference between halt , poweroff ,shutdown

  1. #1
    Join Date
    Jun 2009
    Location
    In front of the computer
    Beans
    Hidden!

    Question What is the difference between halt , poweroff ,shutdown

    What is the difference between the 'halt' , 'poweroff' and shutdown commands ?.

    I 'manned' these commands in terminal , but wouldn't get what I was looking for - the difference , nor could I infer . I also googled ,hoping to find something that might clear the ambiguity . I did come across a thread in linuxforums.org dealing with the same topic and one of the posts there read :
    I am using red hat 5
    I guess i understood the use( plz correct me If I am wrong)
    shutdown - is for shutting down the server
    poweroff- is for shutting down the client
    I wouldn't understand what this would mean to a Desktop Computer .
    Can anyone here explain me precisely what this means - What is the Difference ? .
    I Thank you .

  2. #2
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    8,163

    Re: What is the difference between halt , poweroff ,shutdown

    Same difference - They all transition to runlevel 6.

  3. #3
    Join Date
    Jun 2009
    Location
    In front of the computer
    Beans
    Hidden!

    Re: What is the difference between halt , poweroff ,shutdown

    Quote Originally Posted by HermanAB View Post
    Same difference - They all transition to runlevel 6.
    Thank you HermanAB , but can you explain it in a way that a lay user may understand - what is 'runlevel 6' ??

  4. #4
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,630

    Re: What is the difference between halt , poweroff ,shutdown

    http://en.wikipedia.org/wiki/Runlevel#Ubuntu

    shutdown -r now = to reboot the system
    shutdown -h now = to close the system

    halt -p = shut and turnoff the system
    halt = to close the system

    reboot = to reboot the system
    Last edited by wojox; August 3rd, 2009 at 12:32 PM.

  5. #5
    Join Date
    Jun 2009
    Location
    In front of the computer
    Beans
    Hidden!

    Re: What is the difference between halt , poweroff ,shutdown

    Thank you wojox for making me understand what Runlevels actually are .

    I think i am slowly getting the answers ,but my ambiguity over the difference still remains .

    the difference between halt and shutdown -h now is made clear by wojox's post here , but what is the difference between 'closing the system' and ' shut and turn off the system ' .

  6. #6
    Join Date
    Jul 2009
    Beans
    3
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: What is the difference between halt , poweroff ,shutdown

    Hello all,

    New user to Ubuntu here. I've found the posts and contributors on this forum very helpful in getting an old box up & running with Ubuntu. (Ubuntu actually was up and running well on its own, Impressively) I've been able to sort out some issues with mounting an external HDD and setting up a share of that drive.

    I have noticed issue with shutdown on that computer though. Ubuntu seems to shutdown to an Ubuntu screen with an empty (all black) progress bar, but the computer does not power off (leaving a fan, or two, still whirring away inside the case and LEDs on the front still on).

    What operation does the shutdown button on the upper panel perform? (halt, shutdown, etc.)

    Ideas?

    I tried the command shutdown -H based on another thread i found, with the same end result.
    Next time I'm on there I will have to try halt to see if that is the solution.

    Thanks,
    David

  7. #7
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: What is the difference between halt , poweroff ,shutdown

    Older machines sometimes do not work completely with acpi. The old way of shutting down was to use a module called apm. The module is still available, you just have to set it up. Here are instructions on how to do that:

    http://ubuntuforums.org/showpost.php...63&postcount=5

  8. #8
    Join Date
    Jul 2009
    Beans
    3
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: What is the difference between halt , poweroff ,shutdown

    I did some reading about acpi as well, a post i came across suggested adding acpi=force to grub/menu.lst
    http://ubuntuforums.org/showthread.p...plete+shutdown

    I will look into that apm module.

    Thanks

  9. #9
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: What is the difference between halt , poweroff ,shutdown

    There are a couple of different reasons why shutdown doesn't work for some people. This leads to a couple of different possible solutions. Here is a catalog of various solutions that have worked for certain people:

    http://ubuntuforums.org/showpost.php...7&postcount=28

  10. #10
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,509
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What is the difference between halt , poweroff ,shutdown

    Quote Originally Posted by HermanAB View Post
    Same difference - They all transition to runlevel 6.
    Runlevel 6 reboots a Linux/Unix system, runlevel 0 shuts it down:

    Code:
    man telinit
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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