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

When were female captains banned from Starfleet?

What is going on with gets(stdin) on the site coderbyte?

Why do Radio Buttons not fill the entire outer circle?

Which Article Helped Get Rid of Technobabble in RPGs?

What features enable the Su-25 Frogfoot to operate with such a wide variety of fuels?

I found an audio circuit and I built it just fine, but I find it a bit too quiet. How do I amplify the output so that it is a bit louder?

Why the "ls" command is showing the permissions of files in a FAT32 partition?

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

What fields between the rationals and the reals allow a good notion of 2D distance?

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

Is there a RAID 0 Equivalent for RAM?

How to make money from a browser who sees 5 seconds into the future of any web page?

Non-trope happy ending?

Does the reader need to like the PoV character?

Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?

Will the Sticky MAC access policy prevent unauthorized hubs from connecting to a network?

The Digit Triangles

How to convince somebody that he is fit for something else, but not this job?

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

What is the English pronunciation of "pain au chocolat"?

Isometries between spherical space forms

Is there any evidence that Cleopatra and Caesarion considered fleeing to India to escape the Romans?

Stack Interview Code methods made from class Node and Smart Pointers

How do I fix the group tension caused by my character stealing and possibly killing without provocation?



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
    10 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
    10 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
    10 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
    10 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
10 hours ago





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

– heemayl
10 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
    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










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
    yesterday















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
    yesterday













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
    yesterday

















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

    – Clonkex
    yesterday
















This is a great answer. Explained clearly and unambiguously.

– Clonkex
yesterday





This is a great answer. Explained clearly and unambiguously.

– Clonkex
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














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

Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?