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

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
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
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
2 points

What do you mean by locally vs site wide? For /usr/local that’s usually stuff installed from outside of the distributions normal packaging mechanism. E.g. if you build something from source using “make”, the “make install” would install it there by default (though that is also configurable.)

Also not sure we want to say /mnt is necessarily temporary. Any mount pionts there could easily be added to fstab.

permalink
report
reply
2 points

The FHS says the thing about /mnt. It’s not normally meant to have subdirectories or be mounted to by default.

permalink
report
parent
reply
2 points

The origin is that /usr may be network mounted or otherwise shared across multiple systems, whereas /usr/local is local to a particular PC. That definition is not as relevant with today’s single-user machines, and now it mostly means what you said (/usr is managed by system package manager whereas /usr/local is manually managed).

permalink
report
parent
reply
7 points

Laughs in Nix

permalink
report
reply
3 points

well nix still uses the same structure, the only difference is that files are symlinked to files in subfolders of the /nix/store folder.

For example you may find that /etc/hosts is just a symlink to /nix/store/69420aaabbbcccdddfffggghhhiii420-hosts

permalink
report
parent
reply
2 points

Not everything is in its FHS location, unless you use steam-run. Binaries arwn’t in /bin, for example

permalink
report
parent
reply
2 points
*

I mean fair enough, some files are in /run/current-system/sw/

permalink
report
parent
reply
7 points
*

how is /usr/local local and not system-wide? i though it was for programs you compiled yourself?

permalink
report
reply
6 points
*

Many FHS things don’t make much sense for single-user (human user) systems on modern hardware. /usr/local does though. It’s for you (as admin) to install software that doesn’t come with the os.

permalink
report
parent
reply
14 points

“Local” in this context means local to this whole machine. From the perspective of a single user, it’s system-wide. But then from the perspective of a sysadmin managing dozens of such systems, it’s local.

permalink
report
parent
reply
4 points

thanks for the explanation!

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

  • 7.2K

    Monthly active users

  • 6.6K

    Posts

  • 179K

    Comments