I found the command ( shutdown -h 02:00 ) to schedule shutdown my machine but want to know that Is it compulsory that user must have logged in with root login? Or this command would works for all user?
2 Answers
You can do it with using sudo command as following.
sudo shutdown -h 02:00
surely shutdown command can't works for all user.