I know that we can shut down windows after some specific time like this
shutdown -s -t <time>
But how can I do the same when I want my pc to sleep after some specific amount of time?? is there any command??
Also it will be helpful if you told me the command for Linux too, Cause i rarely use windows.