Hide Any File Or Folder On Your Mac With A Simple Terminal Command

Hide Any File Or Folder On Your Mac With A Simple Terminal Command

Mac: Need to hide your secret diary or another file? You can do it with one terminal command on the Mac. If you want it back, the command to show it works just as easily.

To hide, just type this:

chflags hidden /path/to/file-or-folder
To unhide it, just change hidden to nohidden

chflags nohidden /path/to/file-or-folder

Don’t know the path or don’t feel like typing it? Just type the command and drag that file or folder onto the Terminal window and press enter. Your Mac will handle the rest.

OS X: Hiding Items with the Terminal [The Mac Observer]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


One response to “Hide Any File Or Folder On Your Mac With A Simple Terminal Command”