Created
July 4, 2016 02:48
-
-
Save amosshapira/2ec6ca21ff9ed6733e0f96fc85d65f14 to your computer and use it in GitHub Desktop.
Lock OSX screen from command line, goes to User Switch screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: http://osxdaily.com/2012/03/30/lock-mac-desktop-command-line/ | |
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment