Home Directory Structure
I’ve written about my home directory structure before, but I figured I’d write about it again. Here’s how it currently looks:
drwx------ 2 fubar fubar 4096 2007-12-22 10:12 Desktop drwxr-xr-x 6 fubar fubar 4096 2007-12-23 19:32 bin drwxr-xr-x 5 fubar fubar 4096 2007-12-02 22:12 dev drwxr-xr-x 4 fubar fubar 36864 2007-12-23 19:32 downloads drwxr-xr-x 2 fubar fubar 4096 2007-12-22 16:36 dvdrip-data drwxr-xr-x 3 fubar fubar 4096 2007-11-30 23:41 mail drwxr-xr-x 10 fubar fubar 4096 2007-12-02 08:57 media drwxr-xr-x 5 fubar fubar 4096 2007-12-22 17:49 personal drwxr-xr-x 10 fubar fubar 4096 2007-11-26 17:26 photos
Now, let me go into it a bit deeper for you:
Desktop/ - Standard Linux desktop directory
bin/ - Binaries such as Firefox, Unreal Tournament and the like. I keep this for things I don’t need to install system-wide (what’s the point since I’m the only user on my machine), and for binary releases. I always like running the official Firefox builds from Mozilla, they just seem to work a bit better for me.
dev/ - My coding projects. Python, Perl, etc all go in here. I just create a directory for each project. Additionally, I’ve installed the SVN version of Django here as well. Again, I don’t need it system-wide.
downloads/ - Self explanatory, really. Firefox and torrent downloads go here.
dvdrip-data/ - This seems a bit out of place, and it is for now. Eventually it’ll probably end up in a data directory.
mail/ - Email archive from mutt. I’ve since switched to webmail for the moment, but eventually I plan to archive all mail in there.
media/ - Videos, music, and other assorted media goes here.
personal/ - Personal documents
photos/ - Again, self explanatory.
My home directory is a separate partition. Actually, it’s a separate drive. I have a pair of 250GB drives in my desktop. The first drive contains a Windows XP partition, and the Linux root and swap partitions. The second drive is my /home partition. If you haven’t already, I recommend creating a separate home partition. It makes upgrades and reinstallations a lot easier rather than having one huge root partition.
December 24th, 2007 at 2:55 am
Separate /home indeed… I have 12,000+ directories in my home, with some level of depth to them—but I do envy the cleanliness of your /home. One of these days, I need to get back to housekeeping there on my system again.