How can I shutdown the system after 3 minutes automatically.

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.