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.

Do you know any hidden or little-known nice feature of Mac OS X? It doesn't matter what it is—maybe just a short terminal command or a keyboard shortcut. Share your experiences on hidden Mac OS X features with us..

Please post one tip per answer. Please also check to see if your answer has already been posted - duplicate answers will be deleted. To search answers for this question use inquestion:400 (or inquestion:this, directly from the question page) in addition to your search terms in the search box in the upper right hand corner of this page.

Also provide details on how to achieve that feature, and if possible, include a relevant image too!

share|improve this question
17  
mac.finerthingsin.com is a great source of hidden gems on the Mac. –  Philip Regan Aug 24 '10 at 23:35
1  
My collection of OS X tweaks (hidden or not) can be found here: mths.be/osx –  Mathias Bynens May 2 '13 at 18:43
1  
Does iOS count? I'm sure most people know, but if you pull the camera thingy on the lock screen in iOS 7 up about 2/3 of the screen and then quickly flick it back down again, it will bounce up high enough to trigger the camera! –  RPi Awesomeness Dec 27 '13 at 3:56
show 6 more comments

131 Answers

In any Finder window or Open/Save dialog, you can hit ++G (just '/' also works in Open/Save) to get a location bar from which you can directly type in the directory to go to. It even supports ~ for home and tab completion.

The Open/Save dialog has several other useful shortcuts:

  • + R - Reveals the selected item in a new Finder window.
  • + I - Info window shows for the selected item.
  • + D - selects the Desktop folder as a destination
  • + + L - selects ~/Download folder as a destination
  • + F - cursor jumps to the Find text field
  • + . - Cancels and closes the dialog window
  • + + > - Shows/Hides hidden files in the dialog
share|improve this answer
2  
nice one! this has been bugging me for awhile now... –  Robert S Ciaccio Sep 13 '10 at 10:53
64  
Typing / or ~ in an open/save dialog will also trigger the file path text field to appear. –  John Siracusa Sep 14 '10 at 18:09
3  
This basically works like the command line cd command. Type /... to go to absolute paths, ~/... for paths relative to the user directory and ... for directories relative to the current directory. Great for opening hidden directories. –  deceze Sep 27 '10 at 3:21
show 2 more comments

In the terminal, you can pipe the output of any command to pbcopy to copy it to the system clipboard. You can also paste from the system clipboard using pbpaste, and pipe that to another command or write the value directly to a file:

Copy a string: echo "ohai im in ur clipboardz" | pbcopy

Copy the HTML of StackOverflow.com: curl "http://stackoverflow.com/" | pbcopy

Open a new buffer in VIM, initialized to the content of the clipboard: pbpaste | vim -

Save the contents of the clipboard directly to a file: pbpaste > newfile.txt

share|improve this answer
3  
Dude… vi !== vim –  Mathias Bynens Apr 12 '11 at 9:31
8  
@Mathias while true, on OS X vi seems to actually be a symlink to vim. –  spacemanaki Apr 13 '11 at 1:17
19  
You can also use this to turn rich text (HTML/RTF/etc) into plain-text; just "pbpaste | pbcopy". –  caelyx Apr 13 '11 at 23:40
4  
@caelyx You can use the keyboard shortcut Command + Shift + Option + v to paste plain-text if you have rich-text in your clipboard. –  Buzzy Jun 24 '13 at 9:22
show 5 more comments

I always find the ++4+space (you must press space at the end otherwise it doesn't work) command is really useful, and one that a lot of people don't know you can do. Upon pressing space, you get a large camera icon for your cursor, and it allows you to take a screenshot just of the highlighted window. The nice thing is that OS X preserves the window drop shadow, with full alpha transparency. So when you paste the images into other documents, they look fab.


More screenshot magic from 3rdparty.

Screenshot Secrets via: http://digitalmedia.oreilly.com/2006/01/01/mac-os-x-screenshot-secrets.html:

  • ++3 Capture entire screen and save as a file

  • +ctrl++3 Capture entire screen and copy to the clipboard

  • ++4 Capture dragged area and save as a file

  • +ctrl++4 Capture dragged area and copy to the clipboard

  • ++4 then space Capture a window, menu, desktop icon, or the menu bar and save as a file

  • +ctrl++4 then space Capture a window, menu, desktop icon, or the menu bar and copy to the clipboard

  • Another useful trick is to hold space while drawing a capture area to reposition it.

  • Hit esc while capturing an area or window to exit capture mode.

Note: I added this because I find it to be useful. I don't mean any offense to anyone's answer in doing so.

share|improve this answer
42  
I'd rather describe it as "Having pressed cmd+shift+4, you can toggle between a crosshair snap and a full-window snap using spacebar". –  deceze Aug 26 '10 at 2:25
1  
I didn't know about the "space" aspect -- very nice! –  khedron Sep 8 '10 at 6:28
2  
Tried to add a few more but wouldn't fit as a comment - OP feel free to edit your answer: apple.stackexchange.com/questions/400/… –  Josh Newman Sep 14 '10 at 17:22
4  
If you hold CTRL while taking the shot, it is placed in your clipboard. –  klaaspieter Apr 13 '11 at 8:30
show 6 more comments

Proxy icons

In a document-based application (like Finder, TextEdit, Preview, Pages…), after a document has been saved, a proxy icon for the document appears in the title bar. It represent the file itself, and can be likewise manipulated:

  • click it for a few seconds and drag to another application to open it, or to the desktop/Finder if you want to copy/move it, etc…
  • ⌘-click (or control-click, or right-click) it to view the path menu, useful to open the folder or any subfolders of the file in the Finder.

alt text

  • ⌘-click on the titlebar in Safari can help you easily move up the directory structure of a web site, too!

    alt text

  • Since Mountain Lion you can edit the document titles:

    enter image description here

share|improve this answer
8  
You can also drag it into Terminal. –  Daryl Spitzer Sep 16 '10 at 0:08
9  
The link you gave (to Apple Human Interface Guidelines) is useful. Lots of interesting details to be learned from there (this was new to me: a dot in the (red) close button means there are unsaved changes). –  Jonik Sep 17 '10 at 23:14
5  
Proxy icons are like the best thing ever. +1! –  Mark Szymanski Mar 22 '11 at 19:31
show 2 more comments

You can increase or decrease your volume by quarter increments by Pressing:

+ + Volume Up/Down

The same also works for brightness.


Note that this feature was disabled in Mac OS X Lion from 10.7 through 10.7.3. This feature was restored in 10.7.4. For workarounds on how to accomplish this on earlier Lion versions, see this question.

share|improve this answer
55  
Related to this tip, option+any volume key will open the sound system preference pane, and shift+vol up/down will change volume silently (without the little plink sound.) –  ghoppe Sep 9 '10 at 20:38
9  
Following up on ghoppe, if you've turned off the preference for the little plink sound using Shift + Volume Up/Down will change the volume with the sound effects. –  Matthew Shanley Sep 14 '10 at 17:58
6  
This works for the screen brightness as well: Option + Shift + Brightness Up/Down –  Florin Sep 18 '10 at 10:57
7  
If you want the tiniest little bit of sound, you can turn the sound all the way down with "Volume Down" and then hit the "Mute" key to turn it up just a little bit. –  Ted Naleid Apr 9 '11 at 19:17
show 4 more comments

I love the fact that OS X will scroll the window that the mouse is hovering over, even if another application has focus. That way I can scroll an example that I am coding in TextMate without having to lose keyboard control on TM

share|improve this answer
17  
This is a great feature. Using Command + Click you can even open Firefox links in new tabs without giving it focus. –  David Barry Sep 4 '10 at 17:03
9  
Katmouse will do this for you on Windows. I installed it a few years back and have been using it ever since. –  Robert S Ciaccio Sep 13 '10 at 10:51
5  
This is not limited to OS X - this is a feature in many window managers on Linux / Unix - including the one I'm using right now :P –  George Edison Apr 6 '11 at 0:51
2  
You can also command-click to move a window without giving it focus. –  Neil Fein May 5 '11 at 22:31
show 10 more comments

While Cmd tabbing between applications, without releasing CMD, you can hit 'Q' to quit or 'H' to hide the selected application. Works great with the mouse to get rid of a whole bunch of applications quickly.

The bevel won't go away and you can repeat this for as many applications as you like as long as you're holding CMD.

share|improve this answer
1  
Nice one! Really saves precious seconds. –  Jonik Sep 17 '10 at 13:30
show 6 more comments

Holding while clicking menu bar icons will give you additional menu items or alternate menus. The alternate volume control menu will let you choose input and output audio devices.

volume menu

Bonus: On older versions of OS X, this gave you the alert volume instead of devices. You can still get the alert volume using clicking.

For the airport menu, you'll get WiFi connection information. The BlueTooth menu will include debugging information and tools.

BlueTooth menu

Time Machine will replace the normal operations with "Verify Backups" and "Browse Other Time Machine Disks". Unlike the other menus, the Time Machine menu will show the alternates if you hold Option after opening the menu, and will hide them if you release it.

share|improve this answer
2  
And it won't. This is Snow Leopard only. For Leopard I suggest checking out SoundSource: rogueamoeba.com/freebies –  Jason Salaz Mar 12 '11 at 1:49
2  
This is awesome. –  pt2ph8 Mar 22 '11 at 21:23
7  
I once read 'Option-click everything' –  John Ferguson Apr 8 '11 at 22:56
2  
I've been using soundsource this whole time! Thank you so much for letting me clear up some oh-so-valuable space in my 15" macbook menu bar! –  Matt Williamson Apr 12 '11 at 15:40
2  
Uninstalling SoundSource… –  Brock Boland Apr 13 '11 at 13:43
show 4 more comments

Most applications on OS X respect emacs' style shortcuts for maneuvering about in text fields.

  • ctrl+A: beginning of line.

  • ctrl+E: end of line.

  • ctrl+U: delete from cursor to beginning of line.

  • ctrl+K: delete from cursor to end of line.

  • ctrl+W: erase word to the left.

  • ctrl+T: transpose characters around cursor.

There are others that are slipping my mind currently I'm sure. I miss this so much on Linux.

share|improve this answer
20  
these are emacs shortcuts more than they are bash i believe –  dstarh Feb 9 '11 at 21:31
4  
Those are indeed Emacs bindings; bash uses libreadline, which defaults to Emacs style. There are plenty of other bindings: CTRL+f / CTRL+b to move back and forward by character, and OPT+f / OPT+b to move by word (super useful!). Similarly, CTRL+d deletes the character to the right, and OPT+Delete deletes the word to the left. –  ieure Apr 8 '11 at 19:28
6  
@Will Hardy set -o vi –  Bluu Apr 9 '11 at 3:46
1  
@Bluu: Instant Nerdgasm. <3 –  bastibe Apr 12 '11 at 8:06
show 2 more comments

Want tab to go to every field on a form not just input fields?

I got sick of the state/country drop down fields of web forms being skipped when tabbing.

Go to System Preferences → Keyboard and set Full Keyboard Access to All Controls.

alt text

share|improve this answer
4  
I cannot live without this...absolutely essential! –  Lizzan Oct 9 '10 at 13:01
11  
I don't understand rationale behind "Text boxes and lists only" setting being default. –  Peter Štibraný Nov 2 '10 at 5:40
1  
Ah THAT's where it is! I set it in OS 10.4 and haven't been able to find it since! thanks :) –  Mark Pim Apr 5 '11 at 7:50
1  
It's a trade-off. I find it more irritating than helpful because it often makes it lots more keystrokes to get to the text boxes. –  Old Pro Apr 27 '12 at 23:12
show 5 more comments

When I first switched to Mac a couple of years back, I was using it full time for nearly six months before someone showed me +space to bring up the Spotlight Search. Single best shortcut I've learned.

The Spotlight search field can also handle simple mathematical expressions. No need for Calculator.app for a quick bit of division!

share|improve this answer
1  
I use this shortcut all the time for quick lookup of English word definitions (from the built-in New Oxford American Dictionary) –  Jonik Sep 14 '10 at 21:14
1  
I use Alfred instead, I should try spotlight if it remembers things liek Alfred does. –  Dmitriy Likhten Sep 28 '11 at 20:20
2  
Isn't the default keyboard command Ctrl+Space in recent versions of OS X? –  yusf Apr 12 '12 at 17:13
1  
@LessPop_MoreFizz It can even handle a bit more than simple division, try sqrt(10), cos(10) and so on. –  Emil Feb 7 '13 at 18:19
show 2 more comments

In Terminal (Applications/Utilities/Terminal), open can be pretty handy. It can:

  • launch programs by exact path to the executable
  • launch any program in the PATH directories by executable name

In Terminal, type open -a Application to launch an application that lives in the /Applications folder, or open <exact path to applcation> to launch an application that is anywhere on your computer.

  • open files in default applications

Just us open <file>. open song.mp3 will open song.mp3 in the default audio player (in my case iTunes)

  • open files with other applications

Open a file with Mail.app (i.e. mail the file) open -a Mail homework.txt

  • open a Finder window into a local directory
  • open a Finder window into a network share

open /Path/to/dir/ will launch the folder in Finder, whereas open . will open the current folder in Finder.

  • open any URL with its default handler (e.g. a browser)

open http://google.com will launch the default browser and open the url. It also works for FTP (but i have not tested anything else)

For more, just run man open in Terminal or see this page.

From Super User

share|improve this answer
show 7 more comments

I needed this today, when I had to shut down several Macs.

ctrl + + + Shuts the computer down

+ + sends computer to sleep

+ ctrl + send display only to sleep (great for locking your computer instantly)

ctrl + + restarts the Mac

+ + esc lets you kill not responding programs (including the Finder)

and one of my favorites

+ , gets you to preferences of almost every program

share|improve this answer
8  
Instead of eject, you can use the power button. Useful for MacBook Airs that don't have an eject button. –  Max Ried Aug 19 '12 at 19:32
1  
I always forget which one reboots, sleeps or shuts down. I just know that if I press everything, it shuts down. –  Pepijn Jun 24 '13 at 11:02
show 2 more comments

While typing, just press F5 to get suggestions for what you're typing (almost equivalent to spell-check suggestions). Example:

alt text

share|improve this answer
7  
OH MY GOD THIS IS AMAZING. I had no idea this existed! –  David Pearce Dec 30 '10 at 12:10
9  
Or for MacBooks where to press F5 you have to press the Fn key as well, you could just use the Esc button. (This is cool though, thanks for bringing it to my attention :)) –  Jonathan. Jan 9 '11 at 18:19
4  
Esc works too, but it more unsafe due to Esc usually having another function. But it works :). –  Jason Salaz Mar 12 '11 at 1:46
1  
I love this one!! –  daviesgeek Sep 6 '11 at 2:07
show 1 more comment

It took me a while before I figured out that hitting the space bar while in Finder launches Quick Look on whatever is selected. VERY handy.

Also note that holding while doing this throws you straight into the full-screen view.

share|improve this answer
1  
Alt: no such button. –  rightfold Apr 2 '11 at 15:54
18  
My button says alt on it. I know it's option, but it doesn't say that on it anymore. –  Rich Bradshaw Apr 12 '11 at 19:21
show 4 more comments

+ click on a dock icon takes you to the respective app in /applications

via @Mactip

share|improve this answer
20  
To my delight I just noticed that cmd + click (or cmd + enter) in Spotlight search results (and some other places) follows the same logic (= show in Finder instead of opening) –  Jonik Sep 26 '10 at 12:19
add comment

In most Mac apps (TextEdit, for example), you can -drag* to select a rectangular area of non-contiguous text.

You can also hold while dragging to select multiple disjoint areas in a single selection.

*Hold while dragging your mouse over an area

share|improve this answer
show 2 more comments

The speech synthesizer, which is available from the command line, with the command say, knows how to correctly pronounce the operating system name:

say Mac OS X

It won't say "MacOSex", but "Mac OhEs Ten". That's attention to detail. It works even if you specify macosx as the argument.

share|improve this answer
20  
I use "say" a fair amount -- scripts tell me when they're done, for example. Handy. –  khedron Sep 22 '10 at 0:31
4  
Here’s an example of the details that the speech engine gets correct daringfireball.net/linked/2007/10/28/alex –  Josh Lee Oct 5 '10 at 18:14
12  
say -vz Droid is deliciously ironic. XD –  Bryan Rehbein Jan 31 '11 at 21:08
4  
ls | say to say a list of files –  rightfold Apr 2 '11 at 15:59
2  
the say command is a wrapper over the API to use it from Cocoa (see developer.apple.com/library/mac/#documentation/Cocoa/Reference/…) so I don't see see why it couldn't be used in a service. Also, the accessibility services (VoiceOver) use it as well –  Victor Jalencas Apr 4 '11 at 15:54
show 8 more comments

Running

pmset noidle

or

caffeinate

in Terminal will prevent your Mac from sleeping. Press Ctrl+C to stop.

share|improve this answer
15  
Great tip! Also, Caffeine does the same thing but in a button in the menu bar, and can also prevent sleeping for a certain amount of time (and it's free). –  Ricket Nov 20 '10 at 0:22
5  
caffeinate was recently added.. man caffeinate for more info –  InChargeOfIT Jun 24 '13 at 7:42
show 1 more comment

In any Open/Save dialog window, hitting +D opens the desktop folder.

share|improve this answer
9  
@Radek: There is also Cmd+H for your home directory. –  Harald Hanche-Olsen Apr 2 '11 at 16:35
3  
In the Finder it's Cmd-Shift-D to go to the Desktop. –  michaelmichael Apr 12 '11 at 15:46
3  
In Finder: CMD-Shift-D: Desktop CMD-Shift-A: Applications CMD-SHift-H: Home directory –  klaaspieter Apr 13 '11 at 8:32
show 2 more comments

Hold ctrl and move the scroll wheel (or use two fingers on trackpad). It will zoom in the entire screen.

share|improve this answer
2  
I use it occasionally. I wished it was possible to disable antialiasing... To count pixels ;) –  Vincent Apr 8 '11 at 23:10
8  
@Vincent you can disable AA in Mac OS X 10.7+ by going to System Preferences -> Accessibility -> Zoom -> Un-tick "Smooth Images". As XAleXOwnZX says, it used to be a very handy shortcut key for pixel-counting graphic designers, I want it back. –  simeon Jun 24 '13 at 4:16
show 5 more comments

When you drag and drop any file (or folder) from Finder onto a Terminal window, it gets converted into the full (absolute) path to that file.

I find this a small but occasionally useful trick when dealing with files in both Finder and Terminal.

share|improve this answer
11  
You can also drag & drop files into File Open dialogs, and it will navigate to the appropriate dialog and highlight the file. –  khedron Sep 22 '10 at 0:30
2  
You can also use Copy/Paste instead of Drag & Drop. And since Terminal knows you copied a folder/file, it knows to automatically escape special characters for pasting into the shell. –  Chris Page Sep 4 '11 at 9:35
1  
As of Mac OS X Lion 10.7, if you drag a folder or pathname onto a tab (rather than into the terminal view) it will automatically execute a complete "cd" command. –  Chris Page Sep 4 '11 at 9:37
show 3 more comments

Drag and drop files and folders to "Open" dialogs/sheets: very useful to open package contents with other software.

Just locate the file with the Finder

chess.icns

and drag and drop it to the Open dialog

open dialog

Bonus: you can do the same thing with 'Upload file' web forms. (Only with WebKit-based browser)

drop in browserdropped

share|improve this answer
1  
Also useful in general for open/save dialogs. –  khedron Sep 8 '10 at 6:31
9  
+1 for web forms with drag and drop. SUPER handy! –  Agos Sep 15 '10 at 0:10
1  
I love this behavior and hate that in windows, if you try it, the file is moved to the folder that was showing in the dialog. Stupid! –  adambox Sep 16 '10 at 20:12
show 2 more comments

Show the full directory path in the Finder window.

In the Terminal, run this:

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

Then, run this.

killall Finder

There are all sorts of hidden defaults that can be mucked around with but this is my absolute favorite because now no matter which window I am looking at, I know exactly where I am.

You should also check out TinkerTool for other hidden settings.

share|improve this answer
1  
I just test this, WOW I really love this one. –  Am1rr3zA Jan 31 '11 at 17:23
show 4 more comments

Secrets is a database with a huge amount of hidden settings for both the system and some common applications.

share|improve this answer
add comment

Pressing +fn will bring up the System Preference panel for that key. Here's a list:

  • +Brightness: Displays
  • +Exposé/Dashboard: Exposé and Spaces
  • +Mute/Volume: Sound
  • +Keyboard Brightness: Keyboard (for Macs with backlit keyboards)

Remember that if you have checked the option to use F1, F2, etc. keys as standard function keys, done in System Preferences>Keyboard, then you will need to add the fn to the afore mentioned sequences.

share|improve this answer
add comment

On i.a. en-US keyboards +` will cycle through multiple open windows in your current application.

On some other keyboard layouts the hot key may be e.g. +<.

You can verify—and modify—your "Move focus to next window in application" shortcut under System Preferences → Keyboard → Keyboard Shortcuts → Keyboard & Text Input.

share|improve this answer
2  
It's stunning how many people don't know about this. Of course, I remember when I was complaining about "how bad OSX's Alt Tab is, because it doesn't show all windows". Then I learned how to do it better. –  Jason Salaz Mar 12 '11 at 1:47
1  
cmd + ` (not tilde, which requires shift) can also be used when the task switcher (cmd + tab) is active (continue to hold cmd), selecting the previous application rather than the next. –  eyelidlessness Apr 14 '11 at 5:33
show 2 more comments

Holding down while using the mouse scroll wheel will scroll the window horizontally.

share|improve this answer
6  
If you have a multitouch trackpad, you can also scroll horizontally by swiping two fingers left and right. –  Matthew Apr 13 '11 at 5:56
1  
If you have a Magic Mouse, you can also scroll horizontally by swiping one finger left and right. –  rightfold May 5 '11 at 16:10
add comment

I really find the inbuilt dictionary useful on Cocoa apps like Safari and Mail etc.

With your cursor over a word, press ctrl++D to get a definition.

You can also drag a word straight onto the Safari icon in the Dock to perform a Google search for the word.

share|improve this answer
2  
In Lion it's now in the context menu, plus you can double-tap with three fingers on a multitouch trackpad. –  Paul Eccles Aug 2 '11 at 17:39
2  
Works in Google Chrome, but not in Firefox –  daviesgeek Apr 28 '12 at 0:00
show 3 more comments
  • When typing text in any document or text field ⌥ Option+Backspace will delete the entire word, the same with ⌥ Option+Del which will delete the whole next word.

  • Using an accented language? Press ⌃ Control+Backspace after an accented letter to delete just the accent, not the letter.

share|improve this answer
show 2 more comments

protected by bmike Jan 23 '13 at 23:25

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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