Difference between shutdown options












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






  • 3





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

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






  • 3





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

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






  • 3





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

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






  • 3





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

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




3




3





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

– heemayl
16 hours ago





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

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

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b