Lock a Mac or log out: choose the right shortcut

Control-Command-Q locks the screen. Shift-Command-Q starts logging out of the user account and presents confirmation.

Scope
macOS · Current vendor documentation checked 3 November 2026; no running-app compatibility test is claimed.
Keyboard and customization
Documented Mac defaults; punctuation and function keys depend on keyboard layout and hardware.. User bindings, app versions, focused controls and installed extensions can change a command. Inspect the active app menu or its shortcut editor when a listed combination differs.
Review basis
Documentation reviewed 2026-11-03 by Codex — primary-documentation and editorial review; no hands-on runtime test. These bindings were not tested in a running app for this guide.

Use lock for a temporary break

Locking protects the current session while leaving your applications in place. It is the appropriate choice when you expect to return to the same work shortly. Verify that the lock screen actually appears before leaving the computer; a shortcut assigned by a utility or a keyboard remapping can change what happened.

Treat logout as a session change

Logging out is a different action that may close applications and require dealing with unsaved work. Read the confirmation and any document prompts instead of treating it as a quicker version of locking. Shared or managed Macs may also have policies that affect what remains available after the account session ends.

Practise without bypassing confirmation

For a first check, learn the lock command and the name of the logout command in the Apple menu. There is no need to practise an immediate, confirmation-bypassing logout combination. Keep a deliberate confirmation step for actions that can interrupt applications, transfers or a long-running piece of work.

Documented commands for this workflow

Scroll the table sideways to see every column.

ActionKeysWhen to use it
Lock the screenControl-Command-QLeaves the account session available after unlocking. ↗
Begin logging outShift-Command-QSave your work and read the confirmation before proceeding. ↗

Sources and corrections

Found a mismatch? Email pashaseenainc@gmail.com with your app version, macOS version, keyboard layout and the command. Please leave personal document names out.

Keep going

Right there when you need it.

Keep a compact shortcut reference in your Mac’s menu bar.

Explore the native Mac app