Shutdown system after 3 minutes



Vrai

Well-Known Member
Joined
Mar 16, 2019
Messages
1,046
Reaction score
979
Credits
3,943
I seem to recall that the 'shutdown' command has a timer.
Or do you mean without any human interaction at all?
Perhaps a 'cron job' would do it.
 

in1t5

New Member
Joined
May 13, 2020
Messages
13
Reaction score
4
Credits
121
Code:
sudo crontab -e

Depending on the implementation of cron shipped with your distro, this might not work after an hard shutdown, bot on most systems, it will:

Code:
@reboot /path/to/shutdown +3
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online

No members online now.

Top