lock the screen on a mac from the cmd line


/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend

source

Tags:  macos

Share: