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

2 points
*

What would a use case be for

>/usr/bin

versus

/usr/local/bin

permalink
report
reply
3 points
*

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

permalink
report
parent
reply
2 points

Great. Now I gotta refactor some scripts.

permalink
report
parent
reply
4 points

I’ve never seen /etc/opt used. Usually if an app is in /opt, the entire app is there, including its config which is frequently at /opt/appname/etc/.

permalink
report
reply
1 point

/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.

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
1 point

That seems like a fine use for /opt

permalink
report
parent
reply
1 point

Quest One Identity does.

permalink
report
parent
reply
8 points

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.

permalink
report
reply
4 points

That’s just retconning/backronyming it.

/usr does historically stand for user. It’s where the user home directories were on old Unix versions.

permalink
report
parent
reply
5 points

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.

permalink
report
parent
reply
8 points

laughs in guix

permalink
report
reply
4 points

does guix go the same was as nixos in that regard? where can I find info regarding FHS in guix?

permalink
report
parent
reply
1 point

yeah it uses /gnu instead of /nix

permalink
report
parent
reply
5 points

Afaik guix is very similar to nixos in that respect. The store where applications are installed is called /gnu there.

permalink
report
parent
reply
3 points

FHS? Who needs that?

permalink
report
parent
reply
9 points
*

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

permalink
report
reply
3 points

The better you understand it the less it seems bad.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 6.5K

    Monthly active users

  • 6.5K

    Posts

  • 177K

    Comments