Shutdown system after 3 minutes

Discussion in 'Linux' started by Gabriel9999, May 14, 2020.

  1. Gabriel9999

    Gabriel9999 MDL Novice

    Mar 11, 2019
    37
    5
    0
    How can I shutdown the system after 3 minutes automatically.
     
  2. istighfar

    istighfar MDL Junior Member

    Apr 18, 2020
    66
    31
    0
    This command line should work :

    shutdown -s -t 180
     
  3. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,390
    1,322
    120
    #3 kaljukass, May 14, 2020
    Last edited: May 14, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. istighfar

    istighfar MDL Junior Member

    Apr 18, 2020
    66
    31
    0
    The most important thing is that it works. You can find multiple ways to do that but if all solutions converge to the same result, that's the most important.
     
  5. pablomorfer

    pablomorfer MDL Novice

    May 12, 2020
    5
    1
    0
    Use this:
    sudo shutdown +3
    or
    shutdown +3