Sunday, March 10, 2013

TIPS & TRICKS: Viewing Hidden Files in OS X

Initially, I wanted to find a way to transfer music off an old iPod that hadn't been synced to anything for a long time. I have done this many times with a Windows machine and even told people that it's possible to do it on a Mac (OS X). However, I've never actually done it myself.

The basic process is the same on OS X as it is on Windows. Use the OS explorer window to navigate the iPod after making sure that hidden files are visible. On OS X, this is the secret sauce:
  • Launch Terminal, located at /Applications/Utilities.
  • Type or copy/paste the following two commands into the Terminal window, next to the Terminal prompt. Press the return or enter key after you enter each line.
    • defaults write com.apple.finder AppleShowAllFiles TRUE
    • killall Finder
  • If you ever want to make the hidden folders disappear again, just run the code again, but change TRUE to FALSE.
Making hidden files visible in the operating system can be useful for other troubleshooting and modification steps. 

A follow-up tip to this one is how to make a hidden folder into a non-hidden folder once it's made visible and to recursively make all subfolders unhidden:

  • Using the same terminal window, drag the folder or file into the terminal window. This will put the correct path to the file/folder that needs to be changed to unhidden. 
  • Using the arrows on the keyboard, backspace to the beginning of the path and type in:
    • chflags -R nohidden
  • This should give a command that looks something like:
    • chflags -R nohidden /Users/username/Desktop/FolderName
  • Follow-up the successful command with a:
    • killall Finder


No comments: