Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Possible Duplicate:
Is there a quick way to lock my Mac?

whenever i used to leave my system i just press WINDOWS+L in my windows system. Now i have macbook pro with snow leopard OS and i am searching for equivalent of windows+l.

So my question is what is the keyboard shortcut to lock macbook pro?

i know the shortcut COMMAND+SHIFT+Q. But this shortcut is for logout not to lock the system.

share|improve this question

marked as duplicate by Jason Salaz, Loïc Wolff, bmike, Kyle Cronin Sep 21 '11 at 15:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
This question has been answered over at Superuser SE. Fast User Switching/Apple Menu –  sorens Sep 21 '11 at 14:35
    
@sorens: thanks good to know. Actually I like more my option as it also sends to sleep my screen and does not require much configuration. Depends if Vivart wants exactly the same as WINDOWS+L or just wants to lock the Mac before going away (as I do) –  Matteo Sep 21 '11 at 14:42
    
<kbd> does not work in comments, unfortunately. –  Jason Salaz Sep 21 '11 at 14:43
    
I'd leave this as not a duplicate, personally. I didn't know windows + L was a keyboard shortcut to lock the computer. Yes - it's the same answer, but the search terms to get to it seem quite different to me... –  bmike Sep 21 '11 at 14:50
    
@bmike there's also the "windows+L" keyword in the other question. –  Loïc Wolff Sep 21 '11 at 14:55

2 Answers 2

up vote 3 down vote accepted

control+shift+eject sets the display to sleep. If you have then the option "Require password immediately after sleep or screen saver begins" set in "Security & Privacy" it will lock your machine.

This will only put the display to sleep not the system: not exactly what you asked but the additional screen sleep is not bad (less energy consumption :-)

There are other answers here that point out ways to establish a automation to lock the screen from a keyboard command of your choosing. See

The last two show several methods to script this. You can then use LaunchBar or FastScripts or another tool to launch the action you prefer.

share|improve this answer
    
I think you meant control, not command. :-) –  Harv Sep 21 '11 at 18:32
    
@Harv: ooops, thanks –  Matteo Sep 21 '11 at 18:43

There isn't really a "lock" feature in Mac OS X. Your best option is to enable the "Require password after sleep or screen saver begins" option in System Preferences > Security & Privacy > General. Then, either put the screen or entire computer to sleep. To put just the screen to sleep from the keyboard, type Shift+Control+Eject. This will make the screen go blank, but your computer will still be running. To put the entire computer to sleep, type Command+Option+Eject. This will cause all running processes to stop until the computer is woken up.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.