How can I shutdown the system after 3 minutes automatically.

Recommended Answers

shutdown -P +3 should work.

-P means power off. You can alternatively use -r to reboot. You can use +3 to shutdown in 3 minutes, or "now" to happen right now.

Jump to Post

All 3 Replies

shutdown -P +3 should work.

-P means power off. You can alternatively use -r to reboot. You can use +3 to shutdown in 3 minutes, or "now" to happen right now.

You can use the shutdown command + option like below.
$ sudo shutdown -h +3

I looked it up and it seems the -h and -P commands do the same thing.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.