Mac os x sleep from command line

Mac has sleeping button on the apple icon -> sleep. Another effective way is sleeping from command line

pmset sleepnow

this command sleeps mac immediatelly

Sleeping delay
if we want to sleep after specific period, we can wait command awhile, and after system trigger command

for example sleeping after 10 seconds

sleep 10;pmset sleepnow  

Rate Post :
Similar Posts :
Mac flush DNS cache
Comments :

Message length should be less than 1024 character!