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.
rundll32.exe powrprof.dll,SetSuspendState 0,1,0command, which is mentioned here (and yes, I deliberately switched the verbs), and which answers that question. And, as I said in my comment, the other question is about one-quarter of this question, and so its answer is one-quarter of an answer to this question. So what’s your point? – G-Man Says 'Reinstate Monica' Oct 25 '17 at 16:42