Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

manjaro set to never sleep

Disable sleep
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Enable/re-enable sleep
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

From man systemctl
mask NAME...  
           Mask one or more units, as specified on the command line. This
           will link these unit files to /dev/null, making it impossible to
           start them. This is a stronger version of disable, since it
           prohibits all kinds of activation of the unit, including
           enablement and manual activation. Use this option with care. This
           honors the --runtime option to only mask temporarily until the
           next reboot of the system. The --now option may be used to ensure
           that the units are also stopped. This command expects valid unit
           names only, it does not accept unit file paths.

 unmask NAME...
           Unmask one or more unit files, as specified on the command line.
           This will undo the effect of mask. This command expects valid
           unit names only, it does not accept unit file paths.
Comment

PREVIOUS NEXT
Code Example
Shell :: make a batch file that accepts pipe input 
Shell :: letsencrypt windows tomcat 
Shell :: elastic sense download 
Shell :: linux df -h levels occupy 
Shell :: react-github-contribution-calendar 
Shell :: diff files in different repositories 
Shell :: Não é possível excluir uma partição protegida sem o parâmetro de proteção forçada definido. 
Shell :: start a local SMTP debugging server in linux 
Shell :: partially apply stash git 
Shell :: grep search for text in php files recursive 
Shell :: how to add project to solution command line 
Shell :: how to check 504 response using curl 
Shell :: can i create a branch inside of another branch in GIT 
Shell :: check for webhint version 
Shell :: how to convert text file to executable mac 
Shell :: tail and watch directory linux 
Shell :: youtube-dl Geo Restriction: 
Shell :: how to create a wallpaper on a bat file 
Shell :: brownie run script python 
Shell :: centos show volume usage 
Shell :: MPIexec command 
Shell :: linux instal netmanager 
Shell :: start commit with pound sign 
Shell :: smbolic link linux command 
Shell :: GOOD BATCH LOGIN 
Shell :: xargs use arg multiple times 
Shell :: vi is my terminal froze? 
Shell :: Convert a music file (mp3) to a mp4 video with a static image 
Shell :: How to install ctlptl 
Shell :: pip install win32api 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =