It seems I can shutdown using
sudo shutdown by specifying a time or minutes.
Is there a way to specify datetime for shutdown?
You can do this directly from the
So, for example:
That will run
For commands that don't offer this functionality, you can try one of:
A. Using at
There are three ways of giving a command to
You can give very precise times in the format of
This will run the script
B. Using cron (though this not a good idea for shutdown)
The other approach is using the
So, for example, this will run
To set up a cronjob for a specific date:
This SO answer suggests a way to have it run only once but I have never used it so I can't vouch for it.
It will shutdown your system at 12:00 :
Power-off the machine.
Reboot the machine.
Cancel a pending shutdown.
If you're running a Debian system, you will find
If you simply want to restart or end the session, you can also do that from the bottom drop-down menu. Select the date from the calendar, set the time and press start. Everything should work just fine, but if something is acting up, you can go in the Preferences and manually specify the desktop environment and display manager that you're currently using (if
This link gives more information on