Tell me more ×
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 at 18:43
show 6 more comments

123 Answers

1 2 3 4 5

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
  • + 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
1  
nice one! this has been bugging me for awhile now... – Robert S Ciaccio Sep 13 '10 at 10:53
43  
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

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
6  
You can also drag it into Terminal. – Daryl Spitzer Sep 16 '10 at 0:08
7  
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
3  
Proxy icons are like the best thing ever. +1! – Mark Szymanski Mar 22 '11 at 19:31
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 | vi -

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

share|improve this answer
2  
Dude… vi !== vim – Mathias Bynens Apr 12 '11 at 9:31
1  
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
show 5 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
8  
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
8  
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
4  
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
show 11 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
29  
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
1  
If you hold CTRL while taking the shot, it is placed in your clipboard. – klaaspieter Apr 13 '11 at 8:30
show 5 more comments

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

+ + Volume Up/Down


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
41  
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
7  
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
1  
This works for the screen brightness as well: Option + Shift + Brightness Up/Down – Florin Sep 18 '10 at 10:57
3  
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

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
show 4 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
9  
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 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
17  
these are emacs shortcuts more than they are bash i believe – dstarh Feb 9 '11 at 21:31
3  
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
4  
@Will Hardy set -o vi – Bluu Apr 9 '11 at 3:46
show 3 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.

share|improve this answer
35  
Addendum to this: the Spotlight search field can handle simple mathematical expressions. No need for Calculator.app for a quick bit of division! – LessPop_MoreFizz Aug 24 '10 at 14:53
4  
@LessPop: It's community wiki, remove your comment and add it to the answer via the edit link. – Josh K Aug 24 '10 at 17:33
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  
Isn't the default keyboard command Ctrl+Space in recent versions of OS X? – yusf Apr 12 '12 at 17:13
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 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
5  
I once read 'Option-click everything' – John Ferguson Apr 8 '11 at 22:56
1  
This also works for the network control (in snow). I'm not on my mac right now, can't add cap. – Trufa Apr 12 '11 at 14:38
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
show 4 more comments

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
10  
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

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

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
1  
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
show 2 more comments

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

share|improve this answer
8  
@Radek: There is also Cmd+H for your home directory. – Harald Hanche-Olsen Apr 2 '11 at 16:35
1  
In the Finder it's Cmd-Shift-D to go to the Desktop. – michaelmichael Apr 12 '11 at 15:46
2  
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

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

via @Mactip

share|improve this answer
11  
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

While typing - Just press F5 to get the quickest suggestion of what you typing ( almost equivalent to spell check-suggestions ) like as follows.

alt text

share|improve this answer
4  
OH MY GOD THIS IS AMAZING. I had no idea this existed! – David Pearce Dec 30 '10 at 12:10
6  
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
1  
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

Running

pmset noidle

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

share|improve this answer
12  
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
show 1 more comment

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
15  
I use "say" a fair amount -- scripts tell me when they're done, for example. Handy. – khedron Sep 22 '10 at 0:31
3  
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
8  
say -vz Droid is deliciously ironic. XD – Bryan Rehbein Jan 31 '11 at 21:08
1  
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 5 more comments

Hold ctrl and move the scroll wheel(or use 2 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
show 4 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
1  
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
8  
+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 1 more comment

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.

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

Secrets is a preference pane with a huge amount of hidden preferences for both the system and some common applications.

share|improve this answer

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

share|improve this answer
5  
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

Image Wells

All good mac programs contain image wells for opening files, such as the Desktop and Screen Saver pane in System Preferences:
alt text

or in Filemerge:
alt text

This nifty litte things allow you to drag-and-drop files into them (and in some cases, out of) to load them into the program. Here, I am changing the wallpaper by dragging the file out of Finder and into the image well:
alt text

share|improve this answer
4  
This is also how you can change the icons for apps & other files in Finder. Highlight a file, press Cmd-I, and drag a new icon onto the well. – Joe Shaw Apr 12 '11 at 15:43
show 5 more comments

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

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
1  
Works in Google Chrome, but not in Firefox – daviesgeek Apr 28 '12 at 0:00
show 2 more comments

This is a pretty common one, but to show all hidden files you can type the command

defaults write com.apple.Finder AppleShowAllFiles 1

and then

killall Finder

in Terminal.

To reverse, repeat using a 0 instead of 1.

share|improve this answer
4  
The only annoying bit is that you see the .DS_Store files EVERYWHERE, like on your desktop. – mhud Apr 12 '11 at 17:51
show 3 more comments
1 2 3 4 5

protected by bmike Jan 23 at 23:25

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

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