Prevent OSX from idle sleep

There are several ways to prevent an OSX system to sleep when idle such as the caffeine application or changing the parameters in the System preferences

However there is an even easier way to accomplish this without installing any extra apps, just open a terminal window and run the following command :

pmset noidle

You should see the following output :

Preventing idle sleep (^C to exit)...

Your OSX should now stay awake whilst pmset is running

Popular posts from this blog

Multi-hop ssh tunnel - howto : Creating a SSH tunnel with port forwarding between multiple hosts

Spring boot and spring data jpa tutorial - A sample application using spring 4.0 spring boot and JPA (part 2/2)

MongoDB spring data $elemMatch in field projection