How can I confirm I have successfully turned off sleep and hibernate mode on my Ubuntu 16.04 machine from the CLI?
I only have access to the machine via SSH, so I have no GUI.
I ran the following:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Is there a way to get the sleep/suspend/hibernate settings from the CLI?
1 Answer
I believe the way is as shown below:
sudo systemctl status sleep.target
sudo systemctl status suspend.target
sudo systemctl status hibernate.target
sudo systemctl status hybrid-sleep.targetInformation:
man systemd.special 7 2