Live data from Hacker News

Linux Directory Structure (File System Structure) Explained with Examples

thegeekstuff.com

11–20 of 26 posts

Re: Linux Directory Structure (File System Structure) Explained with Examples

#11
post #9
post #6

I've been using Linux for about 4 years now, and I've tried to find a document like this a few times and failed. This is probably the best reference on this topic I've seen yet.

`man hier`

Wow. How would one go about discovering this?

Re: Linux Directory Structure (File System Structure) Explained with Examples

#12
post #8

This merely tells you what is usually placed in the filesystem, not why. I find the explanation provided on the busybox mailing list to be far more insightful: http://lists.busybox.net/pipermail/busybox/2010-December/074...

Yes, that was eye-opening; it even got 800+ on HN: http://news.ycombinator.com/item?id=3519952

Re: Linux Directory Structure (File System Structure) Explained with Examples

#13
post #9
post #6

I've been using Linux for about 4 years now, and I've tried to find a document like this a few times and failed. This is probably the best reference on this topic I've seen yet.

`man hier`

Very cool - thanks for mentionning this !

Re: Linux Directory Structure (File System Structure) Explained with Examples

#14
post #6

I've been using Linux for about 4 years now, and I've tried to find a document like this a few times and failed. This is probably the best reference on this topic I've seen yet.

FWIW, I think the true Filesystem Hierarchy Standard (see other comments on this page) is a much better reference.

Re: Linux Directory Structure (File System Structure) Explained with Examples

#17
Heh. The OS landscape has changed over time, as disks have gotten much faster and much larger, and some of the design decisions made decades ago no longer make sense.

Fedora is moving everything from /bin, /sbin, /lib, and /lib64 into /usr because maintaining this separation no longer really makes sense: http://www.freedesktop.org/wiki/Software/systemd/TheCaseForT...

Re: Linux Directory Structure (File System Structure) Explained with Examples

#18
post #12
post #8

This merely tells you what is usually placed in the filesystem, not why. I find the explanation provided on the busybox mailing list to be far more insightful: http://lists.busybox.net/pipermail/busybox/2010-December/074...

Yes, that was eye-opening; it even got 800+ on HN: http://news.ycombinator.com/item?id=3519952

The autobiography The Periodic Table, by Primo Levi, see Chapter 12, Chromium. Recipes are perpetuated. Reasons forgotten!

Spoiler: The extract mangles the humour, but you get the idea.

http://www.philosophyblog.com.au/extract-from-the-periodic-t...

Re: Linux Directory Structure (File System Structure) Explained with Examples

#19
I wrote something a bit more detailed a couple years ago, partly as a school project and partly because I couldn't find it anywhere else: http://andrewfleenor.users.sourceforge.net/fhs/fhs.xml

It goes into much more depth, and you can expand and close directories to see what's inside them. I was pretty proud of it.

Re: Linux Directory Structure (File System Structure) Explained with Examples

#20
I've always wondered, are the directories hard coded into the kernel or are there some EV's somewhere or something pointing to them?

I can guarantee one of the bigger problems with mainstream Linux adoption is that the top level of the file system is covered in OS directories. For all its faults, keeping the OS under C:/Windows keeps most Grandmothers from deleting system32.

Post reply on HN