Hey, I’ve recently designed a Poster about the FHS since I often forget where I should place or find things. Do you have any feedback how to make it better?
I updated the poster: https://whimsical.com/fhs-L6iL5t8kBtCFzAQywZyP4X use the link to see online.
Dark mode
Old version
What would a use case be for
>/usr/bin
versus
/usr/local/bin
Binaries in the former are installed by the OS/package manager, binaries in the latter are installed manually by the user, for example by compiling from source and running make install
I’ve never seen /etc/
used. Usually if an app is in /
, the entire app is there, including its config which is frequently at /opt/appname/etc/
.
/opt is kinda legacy at this point. That used to be the location where you’d install software manually in the past but I haven’t seen it used for some time, it was more common in the 00’s.
I still put all my standalone apps in there (meaning apps that are often statically compiled and expect the executable, logs, and config to be in the same directory), as well as apps that have their own docker-compose.yml file. Should I be putting them somewhere else? I know /srv
exists but I’ve never used it and I don’t think Debian creates it by default.
Quest One Identity does.
Great but what I’m missing is the information that “usr” does not stand for “user”, like many people think or even say. If it would the name could actually be “user” and not “usr”.
The chart actually does not say what exactly it stands for. It’s “user resources” AFAIK.
It’s worth clearing this up in my opinion.
Thanks for the input. Things are complicated: https://askubuntu.com/a/135679 . Apparently it originally meant “user” but then slowly was used for system stuff. So people invented backcronyms.
laughs in guix
does guix go the same was as nixos in that regard? where can I find info regarding FHS in guix?
This is a very useful, very well done chart, congratulations.
But what a mess is FHS. Easily the worst thing of linux design for me