Linux - Command to shut down your PC

October 2016

Under Linux, there exists a small command that will allow you to automatically shut-down your PC at given time.
  • To implement it simply:
  • Login as root and open a console.
  • Type in the following:
    • shutdown -h +x
    • Where x can be remplaced by the number of minutes.
    • Thus to shut down your PC after 30 minutes, do a:
    • Shutdown -h +30
  • Note that: You can use this command shut down your PC at a given time:
    • shutdown -h 19:30

Related :

This document entitled « Linux - Command to shut down your PC » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.