Linux - Command to shut down your PC

April 2018

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
Published by jak58. Latest update on August 13, 2010 at 11:22 AM by jak58.
This document, titled "Linux - Command to shut down your PC," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Difference between etc/passwd and the etc/shadow
Ubuntu - Keyboard shortcuts to be used in a terminal