Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

maclover001

macrumors 6502a
Original poster
Mar 25, 2008
895
0
Vancouver, Canada
Want to know how to make a completely hidden folder in OS X that Finder leaves absolutely no trace of? Here's how:

Part One: Making the directory:

We are going to use a little program called Terminal. Open your utilities folder and start it up.

Now you should have a window that looks kind of like TextEdit but with two lines of text already there.

In the Terminal window, type the following, then press enter:

Code:
mkdir /.porn

If your terminal window looks something like this, you're set:

Code:
Last login: Sun Jan  4 21:04:49 on ttys000
Jamies-MacBook:~ jamie$ mkdir /.porn
Jamies-MacBook:~ jamie$

Part Two: Putting files in, and accessing the directory:

Most tutorials will tell you to go to "Go" in the Finder menu bar, and enter the hidden folder into the "Go to folder" box, but what happens if someone else wants to use that box? They will see your folder already typed there!!

We are again going to use the Terminal.
Open it up and type the following:

Code:
open /.porn

You should get a Finder window with a blank folder. Drag all your secret files in there and you're set!
Close the Finder and Terminal windows and there is no trace of your activity anywhere (Not even in "Recent Items")

Anytime you want to see the folder, just open Terminal and type "open /.porn".

Of course you can replace "porn" with whatever word you want, just make sure that it begins with "/."

GEEK NOTE:
You are making this folder on the root directory of your hard drive, if you want to store the hidden file elsewhere, just do /path/to/your/directory/.secretstash

The folder will only be hidden if it begins with a dot, and it was created in Terminal.
 
well, not for porn (ok well a little:p), but this is going to be very useful when I get my macbook.

Thanks.
 
^^^ No I just tested it and so far it didn't show up.
Though I don't need to hide my non-existent porn, I have a few unsent letters I don't want people to find. ;)
 
^^^ No I just tested it and so far it didn't show up.
Though I don't need to hide my non-existent porn, I have a few unsent letters I don't want people to find. ;)

Now you've dashed all our hopes and dreams, we were kind of hoping for some homemade stuff. :(
 
seem to be an easy guide. well done maclover001.

but i'd like to know, if there is a way to get this in a time machine backup (or any backup for that matter)...
 
seem to be an easy guide. well done maclover001.

but i'd like to know, if there is a way to get this in a time machine backup (or any backup for that matter)...

if you have time machine to back up everything including system files, I see no reason why it wouldn't back this up, unless you specifically say not to. This will be backed up in time machine, it just won't be viewable until you restore from said back up, or mount your backup drive and navigate to that folder, or you show all hidden files.
 
I noticed that in terminal, even if you "ls", you still cannot see this "/." folder.

Edit: well, if you do "ls -a", then you can see it lol
 
I noticed that in terminal, even if you "ls", you still cannot see this "/." folder.

Edit: well, if you do "ls -a", then you can see it lol

This entire thing also falls apart if the person just runs "defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder" in terminal.
 
There is a vast difference between "hiding" files and "securing" files

One of the best ways of actually "securing" said files is still creating an encrypted .dmg using Disk Utility

Woof, Woof - Dawg
pawprint.gif
 
There's a handy little program called TrueCrypt. I have no porn to hide, and no reason to secure all my tax returns and receipts but it's pretty good. It creates an encrypted DMG that you mount with a password every time.

I have it only for silly fun. It hasn't been opened in aeons ('couse, half the time I forget the password anyway...)
 
Would it not be better to use an encrypted disc image created through disc utility? That way your documents are secure, as well as hidden.
 
I just have a directory in my documents folder called "kinky stuff", though it's mostly filled with notes lists and records of good play sessions.

I've never been particularly embarrassed about such things though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.