Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to Mac OS. Before I usually used Linux, and /home/your_account directory is used to store personal files, which in Mac, I found, are stored in /Users/your_account. /home is empty and it is a root directory. Thus, I am wondering about the function of this directory. Could anyone give some advice or tips? Thanks.

share|improve this question

migrated from stackoverflow.com Dec 27 '12 at 3:39

This question came from our site for professional and enthusiast programmers.

3  
For me it is completely empty. Legacy cruft would be my guess. – Thilo Dec 27 '12 at 1:34
    
Somewhat marginally related: stackoverflow.com/questions/1362703/… – Thilo Dec 27 '12 at 1:35
    
apple.stackexchange.com/questions/9341/… – Darren Dec 27 '12 at 1:54
    
Are you referring to the hidden volume? – ArtOfWarfare Dec 27 '12 at 2:16
    
Thanks. That's what I want, I think. @Darren – onpduo Dec 27 '12 at 2:24
up vote 2 down vote accepted

Simply put, the /home directory is used for nothing on OS X.

While it's typically the location for user homes in Linux and Unix, Mac OS X uses /Users instead. If you want to write portable programs, simply use $HOME or ~ to refer to the home directory.

The official file system overview from Apple makes no mention of /home by the way.

share|improve this answer
    
I want to remove /home and create a symlink to /Users. But sudo rmdir /home always complaint rmdir: home: Resource busy. Why? Any solution? – Frozen Flame Jul 11 '15 at 4:50

the /home directory is for users. It is automatically made upon the creation of a new user.

share|improve this answer
    
This is simply not true. New users are created in /Users. – slhck Dec 27 '12 at 4:51

You must log in to answer this question.

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