Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJeff Ripke
41,989 PointsWhy does MAC OS have a /home directory?
It is also empty, is it just added automatically and can it be deleted?
2 Answers
Ryan Ruscett
23,309 PointsWhen you create a user on a mac, it gets put into the /home/USERCREATED. It's just how it happens. The idea is like this.
ROOT - is the super user
Now you have individual users
/home/User 1 /home/User 2 etc
Now user 1 should have full access over all directories inside the User 1 home, but not over User 2's home. Although, root has access to both users. It's a way to segment and split up users. Since MAC is a unix based operating system. It has a format like this. Not sure if that helps.
This could be a very loaded question but for the sake of simplicity. Hope this helps.
Oh yes and no you don't want to delete it. If you delete it you will effectively remove the ability to log in as that user and also, all that users data. If you want to remove a user. Just do the "userdel UserName" command.
Jeff Ripke
41,989 PointsThanks @Ryan Ruscett, it more clear now.