Difference between shutdown optionsWhy doesn't running “sudo shutdown now” shut down?Ubuntu hangs on shutdownUbuntu 12.04 doesn't turn off (halt) under ESXi 5.0U1Ubuntu 12.10 wireless shutdown issueSystem will not power down on shutdowngui shutdown on acer aspire v5-573G not workingTrap the shutdown event of ubuntu systemShutdown LubuntuStandby and Shutdown Hang on Macbook Pro 11,4Ubuntu 16.04 hangs on shutdown/restartno shutdown, kubuntu 16.04.2

What is Cash Advance APR?

"It doesn't matter" or "it won't matter"?

What kind of floor tile is this?

Why is so much work done on numerical verification of the Riemann Hypothesis?

Why Shazam when there is already Superman?

Non-trope happy ending?

Why should universal income be universal?

Review your own paper in Mathematics

Unable to get dependencies from jcenter with a new project

Biological Blimps: Propulsion

How does electrical safety system work on ISS?

Which was the first story featuring espers?

When were female captains banned from Starfleet?

Inherit child template to the parent template using Powershell

In a multiple cat home, how many litter boxes should you have?

Why is the Sun approximated as a black body at ~ 5800 K?

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

Make a Bowl of Alphabet Soup

Can I cause damage to electrical appliances by unplugging them when they are turned on?

Doesn't the system of the Supreme Court oppose justice?

Is this toilet slogan correct usage of the English language?

In movies, why do people move so slowly in zero gravity?

Does Doodling or Improvising on the Piano Have Any Benefits?

Stack Interview Code methods made from class Node and Smart Pointers



Difference between shutdown options


Why doesn't running “sudo shutdown now” shut down?Ubuntu hangs on shutdownUbuntu 12.04 doesn't turn off (halt) under ESXi 5.0U1Ubuntu 12.10 wireless shutdown issueSystem will not power down on shutdowngui shutdown on acer aspire v5-573G not workingTrap the shutdown event of ubuntu systemShutdown LubuntuStandby and Shutdown Hang on Macbook Pro 11,4Ubuntu 16.04 hangs on shutdown/restartno shutdown, kubuntu 16.04.2













18















I'd like to know what the difference is between shutdown -H (halt the machine) and shutdown -P (poweroff the machine).
I understand what poweroff means; it's rather self-explanatory. But what exactly is "halt"?



Background:
I need to turn off my PC with a terminal-command because otherwise the shutdown/reboot hangs.



I found the command shutdown -H -P +0 here.
It seems to be combination of the two options and it really works fine.



P.S. I have Lubuntu 18.04.2, 64 bit










share|improve this question



















  • 1





    Why not try and find the source of the shutdown/reboot problem? When it hangs, try hitting the ESC key and see if it brings up a text log of the shutdown/reboot process. Look at any FAIL entries, or the last few entries, for a clue.

    – heynnema
    yesterday






  • 1





    @ heynnema: It´s a bit difficult. Some other people experience the same problem. Shutdown/reboot hangs at a certain point: "kvm: exiting hardware virtualization". See also: unix.stackexchange.com/questions/188747/… . The easiest way turns out to be "poweroff".

    – Rosika
    yesterday






  • 1





    @sudodus Thanks for posting an answer. You should probably delete your comment now.

    – wizzwizz4
    yesterday






  • 2





    Possible duplicate of Why doesn't running "sudo shutdown now" shut down?

    – heemayl
    9 hours ago















18















I'd like to know what the difference is between shutdown -H (halt the machine) and shutdown -P (poweroff the machine).
I understand what poweroff means; it's rather self-explanatory. But what exactly is "halt"?



Background:
I need to turn off my PC with a terminal-command because otherwise the shutdown/reboot hangs.



I found the command shutdown -H -P +0 here.
It seems to be combination of the two options and it really works fine.



P.S. I have Lubuntu 18.04.2, 64 bit










share|improve this question



















  • 1





    Why not try and find the source of the shutdown/reboot problem? When it hangs, try hitting the ESC key and see if it brings up a text log of the shutdown/reboot process. Look at any FAIL entries, or the last few entries, for a clue.

    – heynnema
    yesterday






  • 1





    @ heynnema: It´s a bit difficult. Some other people experience the same problem. Shutdown/reboot hangs at a certain point: "kvm: exiting hardware virtualization". See also: unix.stackexchange.com/questions/188747/… . The easiest way turns out to be "poweroff".

    – Rosika
    yesterday






  • 1





    @sudodus Thanks for posting an answer. You should probably delete your comment now.

    – wizzwizz4
    yesterday






  • 2





    Possible duplicate of Why doesn't running "sudo shutdown now" shut down?

    – heemayl
    9 hours ago













18












18








18


2






I'd like to know what the difference is between shutdown -H (halt the machine) and shutdown -P (poweroff the machine).
I understand what poweroff means; it's rather self-explanatory. But what exactly is "halt"?



Background:
I need to turn off my PC with a terminal-command because otherwise the shutdown/reboot hangs.



I found the command shutdown -H -P +0 here.
It seems to be combination of the two options and it really works fine.



P.S. I have Lubuntu 18.04.2, 64 bit










share|improve this question
















I'd like to know what the difference is between shutdown -H (halt the machine) and shutdown -P (poweroff the machine).
I understand what poweroff means; it's rather self-explanatory. But what exactly is "halt"?



Background:
I need to turn off my PC with a terminal-command because otherwise the shutdown/reboot hangs.



I found the command shutdown -H -P +0 here.
It seems to be combination of the two options and it really works fine.



P.S. I have Lubuntu 18.04.2, 64 bit







shutdown






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









wjandrea

9,35842664




9,35842664










asked yesterday









RosikaRosika

16811




16811







  • 1





    Why not try and find the source of the shutdown/reboot problem? When it hangs, try hitting the ESC key and see if it brings up a text log of the shutdown/reboot process. Look at any FAIL entries, or the last few entries, for a clue.

    – heynnema
    yesterday






  • 1





    @ heynnema: It´s a bit difficult. Some other people experience the same problem. Shutdown/reboot hangs at a certain point: "kvm: exiting hardware virtualization". See also: unix.stackexchange.com/questions/188747/… . The easiest way turns out to be "poweroff".

    – Rosika
    yesterday






  • 1





    @sudodus Thanks for posting an answer. You should probably delete your comment now.

    – wizzwizz4
    yesterday






  • 2





    Possible duplicate of Why doesn't running "sudo shutdown now" shut down?

    – heemayl
    9 hours ago












  • 1





    Why not try and find the source of the shutdown/reboot problem? When it hangs, try hitting the ESC key and see if it brings up a text log of the shutdown/reboot process. Look at any FAIL entries, or the last few entries, for a clue.

    – heynnema
    yesterday






  • 1





    @ heynnema: It´s a bit difficult. Some other people experience the same problem. Shutdown/reboot hangs at a certain point: "kvm: exiting hardware virtualization". See also: unix.stackexchange.com/questions/188747/… . The easiest way turns out to be "poweroff".

    – Rosika
    yesterday






  • 1





    @sudodus Thanks for posting an answer. You should probably delete your comment now.

    – wizzwizz4
    yesterday






  • 2





    Possible duplicate of Why doesn't running "sudo shutdown now" shut down?

    – heemayl
    9 hours ago







1




1





Why not try and find the source of the shutdown/reboot problem? When it hangs, try hitting the ESC key and see if it brings up a text log of the shutdown/reboot process. Look at any FAIL entries, or the last few entries, for a clue.

– heynnema
yesterday





Why not try and find the source of the shutdown/reboot problem? When it hangs, try hitting the ESC key and see if it brings up a text log of the shutdown/reboot process. Look at any FAIL entries, or the last few entries, for a clue.

– heynnema
yesterday




1




1





@ heynnema: It´s a bit difficult. Some other people experience the same problem. Shutdown/reboot hangs at a certain point: "kvm: exiting hardware virtualization". See also: unix.stackexchange.com/questions/188747/… . The easiest way turns out to be "poweroff".

– Rosika
yesterday





@ heynnema: It´s a bit difficult. Some other people experience the same problem. Shutdown/reboot hangs at a certain point: "kvm: exiting hardware virtualization". See also: unix.stackexchange.com/questions/188747/… . The easiest way turns out to be "poweroff".

– Rosika
yesterday




1




1





@sudodus Thanks for posting an answer. You should probably delete your comment now.

– wizzwizz4
yesterday





@sudodus Thanks for posting an answer. You should probably delete your comment now.

– wizzwizz4
yesterday




2




2





Possible duplicate of Why doesn't running "sudo shutdown now" shut down?

– heemayl
9 hours ago





Possible duplicate of Why doesn't running "sudo shutdown now" shut down?

– heemayl
9 hours ago










2 Answers
2






active

oldest

votes


















15














Make it easy and use the command



poweroff


It works with my Lubuntu 18.04 LTS.



halt means flush buffers, unmount drives, close all processes in a graceful way. But not power off (though some systems may power off anyway). So the hardware is still provided with power.



After halt a hard power off (pressing the power button or unplugging the power supply) will not damage the system, because it is already halted in a graceful way.






share|improve this answer























  • This is a great answer. Explained clearly and unambiguously.

    – Clonkex
    22 hours ago


















11














From the man page of shutdown:




-H


Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system




Halted here means it is going to wait for a user action. That can be pressing the power down button and holding it to stop the machine. But also pressing a key that would restart the machine. That can be useful if you want to enter BIOS of the machine.




-P


Requests that the system be powered off after it has been brought down.



+0


it the time it has to wait in minutes




So... -P can, depending on the system, already be part of the -H option. You need the -P if the -H does not power down by itself. What actually happens is part of ACPI and the implementation of it can be buggy so for some it works for others not so ... The general idea when giving a solution is to try to cover all the bases and that would be to use both: -H and -P.






share|improve this answer




















  • 8





    Recall that older computers (without ACPI) couldn't turn themselves off. Witness Windows 95's "It is now safe to turn off your computer" screen.

    – Roger Lipscombe
    yesterday










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1127222%2fdifference-between-shutdown-options%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









15














Make it easy and use the command



poweroff


It works with my Lubuntu 18.04 LTS.



halt means flush buffers, unmount drives, close all processes in a graceful way. But not power off (though some systems may power off anyway). So the hardware is still provided with power.



After halt a hard power off (pressing the power button or unplugging the power supply) will not damage the system, because it is already halted in a graceful way.






share|improve this answer























  • This is a great answer. Explained clearly and unambiguously.

    – Clonkex
    22 hours ago















15














Make it easy and use the command



poweroff


It works with my Lubuntu 18.04 LTS.



halt means flush buffers, unmount drives, close all processes in a graceful way. But not power off (though some systems may power off anyway). So the hardware is still provided with power.



After halt a hard power off (pressing the power button or unplugging the power supply) will not damage the system, because it is already halted in a graceful way.






share|improve this answer























  • This is a great answer. Explained clearly and unambiguously.

    – Clonkex
    22 hours ago













15












15








15







Make it easy and use the command



poweroff


It works with my Lubuntu 18.04 LTS.



halt means flush buffers, unmount drives, close all processes in a graceful way. But not power off (though some systems may power off anyway). So the hardware is still provided with power.



After halt a hard power off (pressing the power button or unplugging the power supply) will not damage the system, because it is already halted in a graceful way.






share|improve this answer













Make it easy and use the command



poweroff


It works with my Lubuntu 18.04 LTS.



halt means flush buffers, unmount drives, close all processes in a graceful way. But not power off (though some systems may power off anyway). So the hardware is still provided with power.



After halt a hard power off (pressing the power button or unplugging the power supply) will not damage the system, because it is already halted in a graceful way.







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









sudodussudodus

25.4k32978




25.4k32978












  • This is a great answer. Explained clearly and unambiguously.

    – Clonkex
    22 hours ago

















  • This is a great answer. Explained clearly and unambiguously.

    – Clonkex
    22 hours ago
















This is a great answer. Explained clearly and unambiguously.

– Clonkex
22 hours ago





This is a great answer. Explained clearly and unambiguously.

– Clonkex
22 hours ago













11














From the man page of shutdown:




-H


Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system




Halted here means it is going to wait for a user action. That can be pressing the power down button and holding it to stop the machine. But also pressing a key that would restart the machine. That can be useful if you want to enter BIOS of the machine.




-P


Requests that the system be powered off after it has been brought down.



+0


it the time it has to wait in minutes




So... -P can, depending on the system, already be part of the -H option. You need the -P if the -H does not power down by itself. What actually happens is part of ACPI and the implementation of it can be buggy so for some it works for others not so ... The general idea when giving a solution is to try to cover all the bases and that would be to use both: -H and -P.






share|improve this answer




















  • 8





    Recall that older computers (without ACPI) couldn't turn themselves off. Witness Windows 95's "It is now safe to turn off your computer" screen.

    – Roger Lipscombe
    yesterday















11














From the man page of shutdown:




-H


Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system




Halted here means it is going to wait for a user action. That can be pressing the power down button and holding it to stop the machine. But also pressing a key that would restart the machine. That can be useful if you want to enter BIOS of the machine.




-P


Requests that the system be powered off after it has been brought down.



+0


it the time it has to wait in minutes




So... -P can, depending on the system, already be part of the -H option. You need the -P if the -H does not power down by itself. What actually happens is part of ACPI and the implementation of it can be buggy so for some it works for others not so ... The general idea when giving a solution is to try to cover all the bases and that would be to use both: -H and -P.






share|improve this answer




















  • 8





    Recall that older computers (without ACPI) couldn't turn themselves off. Witness Windows 95's "It is now safe to turn off your computer" screen.

    – Roger Lipscombe
    yesterday













11












11








11







From the man page of shutdown:




-H


Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system




Halted here means it is going to wait for a user action. That can be pressing the power down button and holding it to stop the machine. But also pressing a key that would restart the machine. That can be useful if you want to enter BIOS of the machine.




-P


Requests that the system be powered off after it has been brought down.



+0


it the time it has to wait in minutes




So... -P can, depending on the system, already be part of the -H option. You need the -P if the -H does not power down by itself. What actually happens is part of ACPI and the implementation of it can be buggy so for some it works for others not so ... The general idea when giving a solution is to try to cover all the bases and that would be to use both: -H and -P.






share|improve this answer















From the man page of shutdown:




-H


Requests that the system be either halted or powered off after it has been brought down, with the choice as to which left up to the system




Halted here means it is going to wait for a user action. That can be pressing the power down button and holding it to stop the machine. But also pressing a key that would restart the machine. That can be useful if you want to enter BIOS of the machine.




-P


Requests that the system be powered off after it has been brought down.



+0


it the time it has to wait in minutes




So... -P can, depending on the system, already be part of the -H option. You need the -P if the -H does not power down by itself. What actually happens is part of ACPI and the implementation of it can be buggy so for some it works for others not so ... The general idea when giving a solution is to try to cover all the bases and that would be to use both: -H and -P.







share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday









N0rbert

24.3k851115




24.3k851115










answered yesterday









RinzwindRinzwind

208k28400534




208k28400534







  • 8





    Recall that older computers (without ACPI) couldn't turn themselves off. Witness Windows 95's "It is now safe to turn off your computer" screen.

    – Roger Lipscombe
    yesterday












  • 8





    Recall that older computers (without ACPI) couldn't turn themselves off. Witness Windows 95's "It is now safe to turn off your computer" screen.

    – Roger Lipscombe
    yesterday







8




8





Recall that older computers (without ACPI) couldn't turn themselves off. Witness Windows 95's "It is now safe to turn off your computer" screen.

– Roger Lipscombe
yesterday





Recall that older computers (without ACPI) couldn't turn themselves off. Witness Windows 95's "It is now safe to turn off your computer" screen.

– Roger Lipscombe
yesterday

















draft saved

draft discarded
















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1127222%2fdifference-between-shutdown-options%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?