Auto Shutdown the Linux System in CLI

A simple command can be entered in the Terminal to schedule a time for the system to shut down.

1. Press Ctrl-Alt-T to run Terminal.

2. Enter sudo shutdown -h +m (replace m with the number of minutes, e.g. +60). OR : enter sudo shutdown -h hh:mm (replace hh:mm with the time on the 24hr clock, e.g. 23:15).

3.  Enter password and minimize the Terminal window.

The system will then shut down within the minutes or at the time specified. To cancel a scheduled time, enter sudo shutdown -c in the Terminal.

Alternatively, you might want to download and install Gshutdown, which is a GUI program for scheduling a time to shut down the system.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: