Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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

I noticed that whenever I add files and delete them, their physical space remains on the disk drive. I uninstalled NTFS Tuxera and I still have the same problem.

So I had to insert the disk under my other Windows laptop to locate the ./#### files and delete them. I was surprised that I couldn't locate those files in Finder, but windows allowed me to view them.

Is there a way to have more control over what files are viewed in Finder?

Platform: retina MacBook Pro, Mountain Lion (OS X 10.8)

share|improve this question
The fact that you couldn't see them in Finder is normal, by default, the files that start with a dot are not shown. – Loïc Wolff Jul 31 '12 at 15:06
You had two questions in here. This site works better when there is only one question per question. That way, it's easier for other people to find solutions if they have the same problem. I've edited out your first question, but feel free to ask it separately. If you do, though, you might want to explain what Tuxera NTFS is and does if you're looking for a replacement for it (and what would make that replacement "better" to you). – Daniel Jul 31 '12 at 15:27
If you'd like to see ⇧⌘. (added in Snow Leopard for open and save dialogs) work in Finder too, head over to and file a duplicate of radar://7096650. (Also see for more answers.) – Quinn Taylor Mar 27 '13 at 3:39
up vote 46 down vote accepted

To enable the Finder to show all files (including "hidden" ones), you can type the following command in at the command prompt in Terminal:

defaults write AppleShowAllFiles -bool YES; killall -HUP Finder The first part sets a hidden preference so the finder shows all files; the second part restarts the Finder so these preferences take effect (killall on its own tells a program to quit; the -HUP flag asks the program to restart).

If you want to reverse this so that the Finder now hides the files it normally hides, type this in Terminal:

defaults write AppleShowAllFiles -bool NO; killall -HUP Finder

If you are more comfortable using the GUI, there is a System Preferences pane you can install called Secrets that lets you toggle this setting any many more, but it involves installing third-party software on your system.

That said, your actual problem of disk space not being freed up when you "delete" files is actually by design.

To permanently delete a file, you need to empty the Trash — Mac OS X doesn't delete files directly in the Finder; it first moves them to a temporary storage on their original volume, and then when you Empty Trash… in Finder, the files get deleted.

Some users are reporting that defaults write is not working on their Mountain Lion systems but defaults write (note the lower case) is working. On my system running Mountain Lion, I am finding that the command works as written, but if it doesn't for you, try lower-casing the F in Finder in defaults write statement.

share|improve this answer
Legend, thanks alot. And thanks for the edit, I had a feeling that 2 questions in one are frowned upon. Btw is there a way I can toggle the terminal command ? Through an app of some sort or keyboard shortcut ? – Render Jul 31 '12 at 15:48
@Daniel: Two questions for you: One, I normally type TRUE/FALSE instead of Yes/No. Does OSX recognize both? Two, what is -HUP used for? – Matt Jul 31 '12 at 16:33
See edits to the answer, and yes, both true/false and yes/no work for booleans. – Daniel Jul 31 '12 at 17:35
the HUP flag to killall sends a gentler quit request to the Finder — if it's in the middle of something sensitive, killall -HUP is less likely to corrupt the filesystem, etc. than an unmodified killall (or killall -9) – Daniel Sep 15 '12 at 19:24
The command as mentioned above did not work for me on mountain lion. This worked however "defaults write AppleShowAllFiles -bool true" – Manfred Moser Oct 12 '12 at 1:03

You can also create a service like this in Automator:

[[ $(defaults read AppleShowAllFiles) = 1 ]] && b=false || b=true
defaults write AppleShowAllFiles -bool $b
killall Finder
open -a Finder

Then give it a shortcut from System Preferences > Keyboard > Shortcuts > Services.

share|improve this answer
you should add the "-HUP" option if you want to restart Finder straight away – meduz Jul 1 '13 at 13:11

Simple and faster:

  1. In Finder click on Go
  2. Hold down Option key and hidden directories & files will appear.
  3. Click on required directory or file.
share|improve this answer
This shows 'Library' when in the Go menu, I can't see any way to make this work in the main Finder window panes – user568458 Apr 8 '13 at 17:58
Even I can't see the hidden files using this. – Varun Bhatia Apr 15 '13 at 5:33
This didn't show hidden FILES – GusDeCooL Apr 19 '13 at 13:37

For Open/Save dialogs, you can do CMD/shift/.(period)

This should toggle hidden files visibility.

share|improve this answer
This is an excellent answer... Saved me a lot of trouble.. – Pankaj Parashar Sep 2 '13 at 16:04
This is what I was looking for/thought I remembered...but didn't know it only applied to Open/Save :( +1 – WiseOldDuck Nov 13 '13 at 0:10

Run these commands to show hidden files

defaults write AppleShowAllFiles -bool TRUE
killall Finder

These for hiding

defaults write AppleShowAllFiles -bool FALSE
killall Finder

Note: f in is small & F in Finder is capital.

share|improve this answer
This answer is incorrect. The required bool qualifier is missing. – P.Brian.Mackey Feb 28 '15 at 13:17
It's working absolutely perfect on 10.10.2. I don't know why it's not working for you. – Inder Kumar Rathore Feb 28 '15 at 15:45
Anyways thanks I'll edit my answer. – Inder Kumar Rathore Feb 28 '15 at 15:47

Simpler, safer.

In the finder menu bar select "Go/Go to folder...". Type the path to the invisible folder, in this case the top directory first slash of /folderName/ and it will reveal all inside it without using the terminal.

share|improve this answer

There is also the option of using Mountain Tweaks.

This has a function that where you can simply turn on or off view invisible files, but it has a limitation and it will only show hidden files on the os you are currently booting from.

So for example you wish to copy a file from a hidden directory on your booted os to a connected disk and its hidden directory you will not see it on the "targeted" disk but you will see it on the one you are booting/working from.

This came up on me when I was transferring some mail files to a new hdd in my MBP that I was upgrading to. But if you simply wish to see hidden files its a nice feature and the Mountain Tweaks app has some other very nice features as well, but it is a third party app and in my case the terminal way is an easier way.

share|improve this answer

Do a Spotlight search for the file, when it is highlighted press and hold Cmd+Option and the path will appear at the bottom of the highlighted file.

share|improve this answer
How does this help in the situation described in the question? – patrix Jan 18 '14 at 7:42

I have written a Mac OS X app "Show Time" to quickly hide and show hidden files from the menubar.

It is open source and available on GitHub.

Check out the source here and the release here.

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.