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

In Terminal, if you hold option, your cursor turns into a small "+". While holding option, you can use this to highlight and copy any square/rectangular area of text instead of whole lines at a time.

share|improve this answer
show 1 more comment

In Safari, on a page that wants you to select a file for upload, instead of clicking "browse", you can usually just drag a file directly to the "browse" button. It will set the filename without even opening up the file dialog.

Slightly recursive example below :)

enter image description here

share|improve this answer

++ or ++ can be used to select the previous or next word.

share|improve this answer
show 2 more comments

Often a simple spotlight query isn't enough.

The shortcut ++space brings up the powerful finder search window no matter what app is running.

Not only can you use the normal search types like kind:app or kind:mail but you can force spotlight to show you files that are normally hidden.

This is particularly useful to search for and inside hidden system files such as .ipsw packages, detailed logs and CoreServices utilities. search window showing hidden System Files

You may want to add System files to your default search menu for quicker access.

  • first click the circle plus to the far right of the Save button to show the optional search filters
  • then choose other under the Kind dropdown
  • lastly search for System and check the include toggle. choose the "other" itementer image description here
share|improve this answer

Just came across this one...

To enter a newline character in a text field you can use + return. Similarly to enter a tab character use + . This is particularly helpful in a find and replace window.

share|improve this answer

By pressing + + + you can create the  - Symbol on a german keyboard.

The tilde-key btw is created by pressing +N for all those who searched `~´

For English (American) keyboards, the shortcut is: Option ⌥ + Shift ⇧ + K

share|improve this answer
2  
It's alt+shift+K on an English (American) keyboard. – Ricket Nov 20 '10 at 0:43
show 1 more comment

It’s possible to set a blazingly fast keyboard repeat rate, much faster than the maximum possible setting in System Preferences → Keyboard → Keyboard → Key Repeat.

The trick is to use this command in Terminal.app:

defaults write NSGlobalDomain KeyRepeat -int 0

After that, log out and back in, or just reopen all applications.

Disclaimer: This is just one of the many goodies in my .osx file.

share|improve this answer
show 1 more comment

Switcher + Exposé

(10.6+)

While +ing (holding , tapping ), you can press or to switch to the currently selected application's window Exposé view. You can then use the keyboard arrows to highlight a window and to switch to it.

share|improve this answer
show 1 more comment
  • Select a bunch of text and drag to the desktop and it will make a text clipping.
  • Drag it back to a text window and it will dump the text there.
  • Double-click and you can view the selectively copy for pasting elsewhere.
  • Install the quicklook extension and you can view text and pict clippings in quicklook.
share|improve this answer
show 2 more comments

The 'Open Terminal Here' applescript that can be added to the finder toolbar(?), is a great way of getting a shell prompt to the folder your are viewing.

The 'original' is at the pages of its author Marc Liyanage:

http://www.entropy.ch/software/applescript/

He kindly links to a number of other versions so you can take your pick.

The other side of the coin (though not worth it's own answer) is the command

open .

to open a finder window for the current shell folder.

share|improve this answer
2  
As of Mac OS X Lion 10.7, Terminal provides Services to do this. Enable New Terminal at Folder in System Preferences > Keyboard > Keyboard Shortcuts > Services. The quickest way to get there is to choose [Application Menu] > Services > Services Preferences…. There's also New Terminal Tab at Folder. These operate on folders in Finder, as well as pathnames selected in text in any application. You can also drag folders (and pathnames) onto the Terminal application icon in the Dock, or onto the tab bar of a terminal window to add a new tab. – Chris Page Sep 4 '11 at 9:30
show 6 more comments

To quickly lock your computer with a screen-saver style password, regardless of whether a password or time delay is set in the Security preference pane, enable the keychain status menu item and use its Lock Screen command. To enable it, open the Keychain Access utility, choose Preferences… from the Keychain Access menu, and enable "Show Status in Menu Bar" from the General pane.

Keychain status menu item with lock screen command

share|improve this answer
1  
@bot47 Not exactly the same. Ctrl-Shift-Eject simply puts the display to sleep. Therefore (1) the password lock does not kick in until the Security time delay is reached (if password is even enabled in the first place) and (2) the display goes to sleep instead of screen saver mode, which as of Lion requires a keyboard button press or mouse click to awaken and takes slightly longer to respond to user input. – PCheese Nov 9 '11 at 0:52
show 1 more comment

ive found that you can play tetris in terminal... When you are in Terminal type emacs and hit enter. After that press escape button and X button at the same time. Now just type “tetris” and hit enter.

( stolen from here http://secretpctips.com/2011/04/mac-os-secrets-easter-eggs/ )

share|improve this answer
1  
Not really a OS X tip, but an emacs tip. – claytron Apr 20 '11 at 19:52
show 1 more comment

I love the DigitalColor Meter application (in /Applications/Utilities) for finding the color of something on screen (especially useful for web development). cmd + shift + h to lock/hold the color you're on, ++c to copy the value as RGB Hex value.

share|improve this answer
show 1 more comment

+ ` (backtick accent) switches between multiple windows of the same app.

share|improve this answer

When switching focus between applications, you can hold down and click on another application. When you change focus from one application to another, the first application hides. So, let's say you are switching from an open Finder window to an open TextEdit window while holding the key. Finder will hide once you click on the TextEdit window. I discovered this by accident and it's pretty cool

share|improve this answer
 sudo purge

I use this all the time for freeing unused memory on my Mac.

share|improve this answer
1  
From man purge: “force disk cache to be purged (flushed and emptied). Purge can be used to approximate initial boot conditions with a cold disk buffer cache for performance analysis. It does not affect anonymous memory that has been allocated through malloc, vm_allocate, etc.” – Mathias Bynens Mar 26 '12 at 7:44

In finder "columns" view, double click the block below the scroll bar arrows to auto fit column width

via @Mactip

share|improve this answer
show 1 more comment

If you want to quickly resize your Dock you can click and drag the bar that separates the apps from minified windows, the Trash etc. If your Dock is on the bottom then drag up to increase the size of the dock and down to make them smaller. Drag left/right if your Dock is on the side of the screen.

share|improve this answer

You can disable 3D Dock effect ( if you don't like ) when dock is at bottom.

Use tinker tool (it's free).

Now, switch to Dock tab, do as instructed in image.

alt text

share|improve this answer
8  
You can achieve the same effect without using TinkerTool by entering this string defaults write com.apple.dock no-glass -boolean YES in the terminal. – Davide Gualano Jan 11 '11 at 12:17
show 1 more comment

An often-neglected feature of OS X is the ability to drag files and proxy icons into other applications or windows.

Try this in Adobe apps. Why use the File > Place… command? Just drag a file directly from the Finder directly into the document you’re working on.

Drag files onto Dock icons to open that JPG in Photoshop rather than iPhoto. Drag an image from your browser into Photoshop’s Dock icon.

share|improve this answer
1  
Wait, Adobe actually did read the HIG? – rightfold Apr 2 '11 at 16:11

You can access the file, edit and other application menus with the "move focus to the menu bar" setting in Keyboard Preferences. I changed it from the default to ctrl ` as the default merely adjusted brightness.

No-one at Apple seemed to be able to let me know how to do this!

enter image description here

share|improve this answer

Hibernate your MacBook Pro with

sudo pmset -a hibernatemode 25

and then put it to sleep which will save the state of your system and then power off. Very handy when flying.

If instead you want very fast sleeps, without writing memory to disk, use

sudo pmset -a hibernatemode 0

To restore the default behaviour, use

sudo pmset -a hibernatemode 3

share|improve this answer

Click and hold Show All in System Preferences, and you'll get a list of all Preferences panes

enter image description here

At the bottom of this list there is a Customize... option

enter image description here

which enables a check mark in the lower right corner of each Preferences panes item

enter image description here

un-checking a check mark, will disable/remove the item(s) from the view, but not delete it.

share|improve this answer
1  
Yeah I believe this is for Lion only. Nice tip though. – Paul Eccles Aug 2 '11 at 20:26
show 1 more comment

3rd party apps can add unwanted items to your right click menus! To add or remove items from the right click contextual menus: Go to System Preferences -> Keyboard -> Keyboard Shortcuts. Select the "Services" panel and uncheck the services which you don't need. enter image description here

share|improve this answer

I use "Spacers" to organize my Dock. Some apps can make them, but its also possible with this command for the Terminal:

defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'

Use

killall Dock

after, to restart your Dock. Now a "Spacer" appeared, just copy and paste this command again to make more. They can be removed and repositioned by dragging just like normal apps.

As an example, here's a spacer between Launchpad and Chrome:

dock spacer example

share|improve this answer
2  
Can it be removed like any other app? By drag 'n' dropping it off the dock? – Loïc Wolff May 4 '11 at 20:15
show 1 more comment

Quickly find your search results in Safari

  1. Perform a Google search in the toolbar
  2. Click a result
  3. Press +G

via @Mactip

share|improve this answer

While you are using + to cycle through open applications, you can press Q before you release to close the app. You can close several apps before release .

share|improve this answer

Exposé for spaces and 'Show desktop' attached to corners of the screen. I've attached 'Show desktop' to my lower right corner, and Exposé for spaces in the top left. Now, i can go bottom right to the desktop, grab a file, move over to the top left to switch to a space, and drop it there in a Finder window or Application.

share|improve this answer
show 1 more comment

Remember the double-sided arrows on both the top and bottom of the scroll column in OS 9? Go to the terminal and type:

defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth

When you login/restart, this will work across all other applications. Very handy to have.

share|improve this answer

Do a "killall dock" in Terminal while a window is being minimized with the Genie effect (helps to hold down Shift to slow it down) and the window will be 'stuck' in the Genie effect yet still be operational! For example, you can still scroll.

share|improve this answer
show 3 more comments

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.