What locking your monitor actually does
Locking your monitor prevents someone from using your computer while you step away, but it does not encrypt your files or protect data that is already stored on your machine. When you lock the screen, Windows, macOS, or Linux shows a login prompt — the person at the keyboard has to enter your password to get back in. If they know your password, the lock does nothing. If they do not, they cannot access your open programs, files, or email without restarting the computer (which may erase unsaved work but can bypass the lock entirely on some machines).
Locking is useful in offices, libraries, or shared homes where you need a quick barrier against casual browsing. It is not a substitute for shutting down or logging out if you are leaving a computer unattended for hours, or if you are in a place where someone might have physical access to restart the machine or open it up.
Key Takeaways
- On Windows, press Windows key + L to lock when ready; on Mac, press Control + Command + Q; on Linux, the shortcut varies by desktop environment but Control + Alt + L works on many systems.
- Locking the screen requires someone to enter your password to resume use, but does not protect files if the computer is restarted or if your password is weak.
- You can set your computer to lock automatically after a period of inactivity, which is faster than remembering to lock manually each time.
- Locking is different from sleeping or hibernating — a locked screen still uses power and keeps your programs running in the background.
The fastest way to lock on Windows
Press the Windows key and L at the same time. Your screen will go dark or show a lock screen with the time and date, and you will see a prompt to enter your password. This works on Windows 10 and Windows 11, and it is the quickest method if you are stepping away for a few minutes.
If you prefer not to use the keyboard shortcut, you can also click the Start button, then your username in the top left, and select "Lock" from the menu. This takes longer but works the same way.
Locking on Mac
Press Control, Command, and Q all at the same time. Your Mac will lock when ready and show the login screen. You will need to enter your password (or use Touch ID if your Mac has it) to unlock.
If you do not want to memorize the shortcut, you can also go to the Apple menu, select "Lock Screen", or set up a hot corner — a corner of your screen that locks the Mac when you move your cursor there. To set this up, go to System Settings, then "Lock Screen", then "Hot Corners" (on older Macs, this is in System Preferences under "Mission Control").
Locking on Linux
The keyboard shortcut depends on which desktop environment you are using. On GNOME (the most common), press Control, Alt, and L. On KDE Plasma, press Control, Alt, and L as well. On Cinnamon, the same shortcut usually works. If none of these work, open your system settings and search for "lock" to find the option and set your own shortcut.
You can also click the system menu (usually in the top right corner), find "Lock" or "Power", and select it from there. Like Windows and Mac, you will need your password to unlock.
Setting your computer to lock automatically
On Windows: Go to Settings, then "Accounts", then "Sign-in options". Scroll down to "Screen timeout" and set it to how many minutes you want to wait before the screen locks (1 minute is common for shared computers). You can also set a separate timeout for when the computer is plugged in versus on battery.
On Mac: Go to System Settings, then "Lock Screen". You will see an option for "Turn display off after" — set this to your preferred time. The screen will lock when the display turns off. Note that this is not the same as sleep; your Mac will still be running in the background.
On Linux: This varies by desktop environment. On GNOME, go to Settings, then "Power", then set "Screen Blank" to your preferred time. On KDE, go to System Settings, then "Power Management", then "Screen Energy Saving". The exact menu names may differ depending on your Linux distribution.
The difference between locking, sleeping, and shutting down
When you lock your screen, your computer stays on and all your programs keep running — you just cannot see or use them without entering your password. When you sleep or hibernate, your computer uses much less power and your programs are paused, but you can wake it up quickly by moving the mouse or pressing a key. When you shut down, your computer turns off completely and all unsaved work is lost.
For a quick break (a few minutes), locking is fine. For longer absences (an hour or more), sleep or shutdown saves power. If you are in a find location and just want to prevent accidental clicks, locking is enough. If you are in a public place or leaving the computer overnight, shutdown is safer.
What locking does not protect against
If someone restarts your computer, the lock screen goes away and they can use it as if it were new — though your files will still be there when you log back in. If your password is weak (like "password" or "123456"), someone with physical access can guess it. If you have already logged into email, cloud storage, or other accounts, those sessions may still be active in the background even though the screen is locked.
For real security, use a strong password (at least 12 characters, mixing letters, numbers, and symbols), enable two-factor authentication on important accounts, and consider full-disk encryption if your computer contains sensitive information. Locking is a courtesy barrier, not a security system.
Frequently Asked Questions
Can someone unlock my computer if they restart it?
Yes. Restarting bypasses the lock screen and takes the computer back to the login prompt. Your files are still there and password-protected, but the lock itself is gone. To prevent this, enable a BIOS or firmware password in your computer's startup settings, though this is uncommon outside of workplaces.
Does locking my screen protect my files?
No. Locking prevents someone from using your keyboard and mouse, but if they restart the computer or have physical access to the hard drive, they may be able to access files. For real file protection, use encryption like BitLocker (Windows), FileVault (Mac), or LUKS (Linux).
What happens to my open programs when I lock?
They keep running in the background. Your email will still receive messages, downloads will continue, and any background tasks will proceed. The screen is just hidden behind the lock prompt. This is different from sleep, where programs pause.
Can I lock just one monitor if I have two?
No. Locking locks the entire computer, not individual monitors. Both screens will show the lock prompt. If you want to hide one monitor's content, you would need to turn it off or use a privacy screen.
Is there a way to lock my computer without using a password?
On Mac, you can use Touch ID or Face ID if your machine has it. On Windows 11, you can use Windows Hello (facial recognition or fingerprint). On Linux, this depends on your desktop environment and hardware. However, you should still set a password as a backup in case the biometric method fails.