Schedule Ubuntu Shutdown With This Simple Command

While there are plenty of tools that allow you to schedule your Ubuntu to shutdown at a specified time, here is an inbuilt command that you can use to automate the shutdown of your computer. It will save you the effort of installing third party software too.

Open a terminal and type:

sudo shutdown -h now

This will shutdown the computer immediately.

sudo shutdown -h 16:05

The computer will shutdown at 4.05pm.

sudo shutdown -h +5

The computer will shutdown 5 minutes from now.

If you want it to restart instead of shutdown, use the “-r” flag instead. For example:

sudo shutdown -r now

Isn’t that easy?

Do you like what you read here?

Receive the latest update in your inbox.

Or connect with us: