Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 30, 2012, 04:48 PM   #1
briandev
macrumors newbie
 
Join Date: Jul 2012
Showing hidden files still not working after enabling 'ShowAllHiddenFiles'

Hi, all. I've tried the following:

new-host-3:root# defaults write com.apple.Finder AppleShowAllFiles TRUE; killall -HUP Finder
new-host-3:root# defaults read com.apple.Finder AppleShowAllFiles
TRUE
new-host-3:root#

However, even after restarting Finder and verifying this boolean value has been changed, it still doesn't show hidden files (e.g., .htaccess). Is there anything else that needs to be done? I've tried restarting as well.

Any help is appreciated. Thanks!

Last edited by briandev; Sep 30, 2012 at 06:17 PM.
briandev is offline   0 Reply With Quote
Old Sep 30, 2012, 04:55 PM   #2
GGJstudios
macrumors Westmere
 
Join Date: May 2008
To show hidden files in Finder, copy and paste the following two commands into a Terminal window (press enter after each line):
defaults write com.apple.finder AppleShowAllFiles true
killall Finder
To hide hidden files in Finder, copy and paste the following two commands into a Terminal window (press enter after each line):
defaults write com.apple.finder AppleShowAllFiles false
killall Finder
GGJstudios is offline   0 Reply With Quote
Old Sep 30, 2012, 05:21 PM   #3
briandev
Thread Starter
macrumors newbie
 
Join Date: Jul 2012
Quote:
Originally Posted by GGJstudios View Post
To show hidden files in Finder, copy and paste the following two commands into a Terminal window (press enter after each line):
defaults write com.apple.finder AppleShowAllFiles true
killall Finder
To hide hidden files in Finder, copy and paste the following two commands into a Terminal window (press enter after each line):
defaults write com.apple.finder AppleShowAllFiles false
killall Finder
Thanks for posting. I just tried this now (since it was slightly different than what I tried) and it didn't work. After Finder restarted, I went into some files that I know contain .htaccess and I don't see them. I also don't see .DS_Store in any folders.
briandev is offline   0 Reply With Quote
Old Sep 30, 2012, 05:27 PM   #4
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by briandev View Post
Thanks for posting. I just tried this now (since it was slightly different than what I tried) and it didn't work. After Finder restarted, I went into some files that I know contain .htaccess and I don't see them. I also don't see .DS_Store in any folders.
Did you copy and paste, or just type? It's never failed to work for others. You might also try restarting your Mac.
GGJstudios is offline   0 Reply With Quote
Old Sep 30, 2012, 06:21 PM   #5
briandev
Thread Starter
macrumors newbie
 
Join Date: Jul 2012
Quote:
Originally Posted by GGJstudios View Post
Did you copy and paste, or just type? It's never failed to work for others. You might also try restarting your Mac.
I will try restarting again. I tried restarting for my initial command I typed as mentioned in my original posts. Both attempts were copy/pasted, not manually typed.

I can verify that it is showing as true:

new-host-3:root# defaults read com.apple.Finder AppleShowAllFiles
true
new-host-3:root#

----------

Quote:
Originally Posted by briandev View Post
I will try restarting again. I tried restarting for my initial command I typed as mentioned in my original posts. Both attempts were copy/pasted, not manually typed.

I can verify that it is showing as true:

new-host-3:root# defaults read com.apple.Finder AppleShowAllFiles
true
new-host-3:root#
UPDATE: I have resolved the issue. You need to enter in this command as a local user, not root. It's working now! Hope this helps someone in the future.
briandev is offline   0 Reply With Quote
Old Sep 30, 2012, 10:06 PM   #6
Mal
macrumors 603
 
Mal's Avatar
 
Join Date: Jan 2002
Location: Orlando
Quote:
Originally Posted by briandev View Post
UPDATE: I have resolved the issue. You need to enter in this command as a local user, not root. It's working now! Hope this helps someone in the future.
That's because when you run the defaults command, it modifies the specified file (com.apple.Finder.plist in this case) in the current user's home directory. That means when you do this logged in as root, it does it in the root home directory, and therefore it wouldn't affect your main user account. It would work if you logged into the GUI as root, but most people don't do that often (and shouldn't).

jW
__________________
The Bearded Nerd
13" MacBook Pro; 64GB iPod touch
"It's a real burn, being right so often."
NoiseTrade.com/Walker
Mal is offline   0 Reply With Quote
Old Nov 3, 2012, 12:49 PM   #7
Jesse Smith
macrumors member
 
Join Date: Apr 2003
Location: Planet Zeekois
Question

How do you get it so that once they are showing, you can just click and edit the files (.htaccess)? I got all .htaccess files set to open with TextWrangler, but clicking it does nothing.
__________________
24" iMac, 3.06 GHz Intel Core 2 Duo, 4 GB RAM, 1 tb HD space, 1 tb external Lacie HD, 2 tb external G-Force Megadisk HD for a juicy 4 terabytes total!
Jesse Smith is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Show hidden files not working in Mavericks BlueGummiBear OS X Mavericks (10.9) 40 Jun 24, 2014 09:10 PM
Problem showing hidden files in Mountain Lion Meyerr OS X 10.8 Mountain Lion 6 Nov 20, 2013 11:17 PM
Delete hidden "Icon" files after "Showing All Files"? bedifferent OS X Mavericks (10.9) 2 Aug 20, 2013 10:54 PM
hidden files on my HDD are to stay hidden forever???help falconb Mac Basics and Help 11 Oct 11, 2012 02:30 PM
showing hidden files Drich290195 Mac Basics and Help 7 Aug 21, 2012 03:35 PM

Forum Jump

All times are GMT -5. The time now is 07:06 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC