Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ScoreUnder
Created September 22, 2016 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScoreUnder/288b8b0320e7047c19dc90e5cffde41c to your computer and use it in GitHub Desktop.
Save ScoreUnder/288b8b0320e7047c19dc90e5cffde41c to your computer and use it in GitHub Desktop.
Lock entire computer on linux with vlock
sudo openvt -s -- sh -c "sudo -u charles -- vlock -a; chvt $(fgconsole)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment