Prevent Mac to Sleep
August 28, 2019
To stop sleep entirely:
sudo pmset -a disablesleep 1
To revert, allow sleep again:
sudo pmset -a disablesleep 0
To display global power settings:
pmset -g
To stop sleep entirely:
sudo pmset -a disablesleep 1
To revert, allow sleep again:
sudo pmset -a disablesleep 0
To display global power settings:
pmset -g