Glam Prestige Journal

Bright entertainment trends with youth appeal.

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.target

Information:

man systemd.special 7
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy