Shutdown system after 3 minutes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel9999
    New Member
    • Jul 2019
    • 15

    Shutdown system after 3 minutes

    How can I shutdown the system after 3 minutes automatically.
  • edizgeorgi
    New Member
    • Oct 2019
    • 8

    #2
    You can use the shutdown command + option like below.
    $ sudo shutdown -h +3
    Last edited by Rabbit; May 18 '20, 04:15 PM. Reason: External link removed per forum policy

    Comment

    • cetpainfotech
      New Member
      • Jan 2023
      • 15

      #3
      To automatically shut down a Linux system after a certain period of time, you can use the "shutdown" command with the "-t" option, which specifies the number of seconds until the system should be shut down. For example, to shut down the system after 3 minutes, you can use the following command:

      In perl:-

      sudo shutdown -h +3
      This command will shut down the system after 3 minutes. The "-h" option is used to specify that the system should be halted (or shut down) after the specified time.

      You can also use the "at" command to schedule a shutdown for a specific time. For example, if you want to shut down the system at 6:00 PM, you can use the following command:

      In bash:-

      echo "shutdown -h now" | at 18:00
      This will schedule a shutdown for 6:00 PM.

      Note that using the above commands will require root or superuser permission.
      Also, please be careful when using the shutdown command, as it will immediately shut down the system and any unsaved work will be lost.

      Comment

      • pritikumari
        Banned
        New Member
        • Jan 2023
        • 23

        #4
        You can use these methods for shutdown system after 3 minutes.

        Change the Registry setting for Power down After Shutdown.
        Turn off the automatic restart option when a system failure occurs.
        Turn off the hibernation feature.
        Check the behavior of the power button setting.
        Disable fast startup.

        Comment

        Working...