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:

This will shutdown the computer immediately.

The computer will shutdown at 4.05pm.

The computer will shutdown 5 minutes from now.

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

Isn’t that easy?