6

Is there a way to hide folders in OSX like you can in Windows? And if so then how?

13

The command-line way:

Open Terminal (/Applications/Utilities) and type

chflags hidden /path/to/folder

replacing /path/to/folder with the POSIX-style path to the folder you want to hide (for example, a folder on your desktop called test would be ~/Desktop/test).

To unhide it, type chflags nohidden /path/to/folder.

The freeware way:

I haven't used it, but I've seen the app Hide Folders, by Altomac.

| improve this answer | |
4

Any file or folder that begins with a . will be hidden by default, although you can use a utility like TinkerTool to override this.

| improve this answer | |
  • Unfortunately, in 10.6, Finder won't let you rename something to start with a . – Nathan Greenstein Jun 15 '11 at 0:56
  • @Nathan Terminal lets me rename files to start with a ., but you're right that Finder does not. – Troyen Jun 15 '11 at 3:03
  • Hm, maybe that's another feature of TinkerTool or something else I've added, as I'm able to rename files in the Finder with a beginning dot. But using mv in Terminal is always available, as per @Troyen – Chuck Jun 15 '11 at 4:32
0

In terminal enter the following to show hidden folders:

defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder;

This will make all hidden folders visible, and will also allow you to prefix a folder with "." directly from finder (making it hidden).

To hide folders again, enter the following:

defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder;
| improve this answer | |
  • If you don't want to always be opening terminal and typing this in, make an automator command so you can assign it to a hotkey or menu option or something. – mopsyd May 17 '13 at 18:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .