Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

1) How can I delete a file via keyboard shortcut?

2) How can I lock my screen via keyboard shortcut?

share|improve this question
up vote 4 down vote accepted

From here, to send a file to trash, the key combo is Command+Delete.

Locking screen is a little more difficult since there isn't a built in way to do it. However if you use Expose along with keystroke (i.e. F12 activates screen saver) and also set Security settings to ask for password anytime it returns from the screen saver, you will be able to accomplish a keystroke binding to lock your screen.

You can access keyboard shortcuts for Expose in System Preferences -> Keyboard Shortcuts -> Expose & Spaces. You will also want to check System -> Preferences -> Security to enable the setting that always asks for a password on resuming from screen saver.

Locate the Screen Saver preference panel

Locate screen saver preference

Click on "hot corners"

Hot corners

Set a hot corner to start the screen saver.

Set hot corner

Assuming you set the screen saver to require a password (in Security) you can move your mouse to the hot corner to start the screen saver, in essence locking the computer.

share|improve this answer
elaborate please on the second part of the answer. Where can I set a hotkey for screensaver? I'm on OS X 10.6.2. – Moshe Mar 23 '10 at 3:43
thanks. Hot corner, not working though... – Moshe Mar 23 '10 at 3:48
how long does hot corners take to start once my mouse is in the corner? – Moshe Mar 23 '10 at 3:58
EDIT: My mistake. When they say the corner, they mean the CORNER. Cool. It works. – Moshe Mar 23 '10 at 4:01
There's very good reading on corners as buttons ( and – Josh K Mar 23 '10 at 4:17

If you fear hitting the locking button unintended, there is a Dashboard widget for this:

share|improve this answer

1) In Finder, this is Command-Delete.

2) Enable the "Require password immediately after sleep or screen saver begins" option under Security in System Preferences.

You can now use this combination to lock the screen: Ctrl-Shift-Eject.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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