Sometimes you may wish to schedule your PC to turn off automatically after certain amount of time. For example when you're watching a movie in the late evening and don't know if you won't fall asleep before the movie ends :)
You can schedule your PC to turn off in the following way:
type: "shutdown -s -t xxxx" (for shutdown)and hit Enter
type: "shutdown -r -t xxxx" (for reboot)and hit Enter
where xxxx is amount of time in seconds.
If for some reason you changed your mind and want to cancel the scheduled shut down just run command "shutdown -a" to abort.
if you would like to shut down your computer in one hour, you would use this command:
shutdown -s -t 3600