Show hidden files won't stick

Hi,

I'm setting up an i7 Mac Mini with Mavericks and trying to show hidden files. Using Terminal I do the old


$ defaults write com.apple.finder AppleShowAllFiles TRUE

$ killall Finder


But hidden files are still invisible.


When I try to read back it reports:


The domain/default pair of ([...]com.apple.finder, AppleShowAllFiles) does not exist


I've opened the plist up in XCode and every time I add it there it disappears as soon as I issue the `killall Finder` command.


Anybody know why this might be?

Posted on Jan 5, 2014 11:45 AM

Reply
26 replies

Jan 5, 2014 5:39 PM in response to Tristian

These commands definitely work as I provided them to you. I tested them again before I responded. They were also tested on Mountain Lion and Lion with the same success.


I would suggest you move that ~/Library/Preferences/com.apple.finder.plist file to your Desktop, then killall Finder.


Triple click the individual commands that I previously posted, copy to clipboard, and paste into your Terminal.

Jan 5, 2014 5:45 PM in response to Tristian

Try first ensuring the com.apple.Finder preferences file itself contains the setting (open it with a text editor like TextWrangler), and then try restarting your computer. Mavericks caches preference settings, which should be updated properly by the "defaults" command, but there may be some odd behavior going on. With the setting in place in the file on disk, restarting should hopefully clear and reload the cached settings.

Jan 7, 2014 4:43 AM in response to baltwo

Hi baltwo,

Interestingly if I apply write then read it straight away I get 1. Wait a few seconds and try again I get 'does not exist':



$ defaults write com.apple.finder AppleShowAllFiles -bool TRUE && killall Finder

$ defaults read com.apple.finder AppleShowAllFiles

1

$ defaults read com.apple.finder AppleShowAllFiles

2014-01-07 10:06:20.426 defaults[420:507]

The domain/default pair of (/Volumes/Data HD/Users/tristian/Library/Preferences/com.apple.finder, AppleShowAllFiles) does not exist



This is the same as I was getting when I tried to manually edit the file in XCode.

Jan 7, 2014 9:25 AM in response to Tristian

Please read this whole message before doing anything.


This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.


Step 1


The purpose of this step is to determine whether the problem is localized to your user account.


Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”


While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.


Test while logged in as Guest. Same problem?


After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.


*Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.


Step 2


The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.


Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.

Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.


Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.


The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.


Test while in safe mode. Same problem?


After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

Jan 7, 2014 11:14 AM in response to Linc Davis

Hi Linc

Thanks for info. The Guest account behaves as expected — I can see hidden files. Using Safe Mode and applying the AppleShowAllFiles doesn't work as expected, I cannot see hidden files. After that I created another test user and AppleShowAllFiles works correctly.


So I guess the problem is with my account then, is there anything I can do to fix it or will i need to set up a new account for myself?


Cheers

Trist

Jan 7, 2014 11:18 AM in response to Tristian

Back up all data.

This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.

I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.

Step 1

If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box markedAllow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.

Triple-click anywhere in the following line on this page to select it:

{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2>&-


Copy the selected text to the Clipboard by pressing the key combination command-C.

Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.

You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.

Step 2 (optional)

Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.

Boot into Recovery. When the OS X Utilities screen appears, select

Utilities ▹ Terminal

from the menu bar. A Terminal window will open.

In the Terminal window, type this:

res

Press the tab key. The partial command you typed will automatically be completed to this:

resetpassword

Press return. A Reset Password window will open. You’re not going to reset a password.

Select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.

Select your username from the menu labeled Select the user account if it's not already selected.

Under Reset Home Directory Permissions and ACLs, click the Reset button.

Select

▹ Restart

from the menu bar.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Show hidden files won't stick

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.