5 ms·
Speaking of this, is there a good resource that elegantly but succinctly describes the intent of each of linux’s (Unix’s?) root directories? I’ve spent like ei
by Waterluvian 5y ago
Speaking of this, is there a good resource that elegantly but succinctly describes the intent of each of linux’s (Unix’s?) root directories?
I’ve spent like eight years with Ubuntu and realize it’s all symbol manipulation to me. I learn what is and goes where but all in practice and never because I understand the semantics.
- wkz 5y agohttps://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf
- faho 5y agoYou probably have a "hier" man page on your system. https://man7.org/linux/man-pages/man7/hier.7.html https://man7.org/linux/man-pages/man7/hier.7.html Also systemd has a "file-hierarchy" man page for its understanding of the hierarchy, which includes e.g. its use of /run and which directory can be read-only - https://man7.org/linux/man-pages/man7/file-hierarchy.7.html https://man7.org/linux/man-pages/man7/file-hierarchy.7.html
- Waterluvian 5y agoAha! Thanks so much.
- drothlis 5y agoMany distros, including Debian & Ubuntu, have merged /bin and /usr/bin, with symlinks for backwards compatibility: /bin -> /usr/bin (and similarly for /usr/lib etc). https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/ https://www.freedesktop.org/wiki/Software/systemd/TheCaseFor...
- happymellon 5y agoDid Debian do it? I thought there was internal conflict in the project whether it would happen, and has been for a decade.
- jeroenhd 5y agoAs it stands, I believe that Debian as a distribution did switch, but the .deb packaging software/dpkg package manager that Debian relies on doesn't support it well.
- pabs3 5y agoThe Debian/Ubuntu merged-/usr is incomplete, various things are broken by the way this was achieved: https://wiki.debian.org/Teams/Dpkg/MergedUsr https://wiki.debian.org/Teams/Dpkg/MergedUsr
- faho 5y agoNote: This is the dpkg maintainer arguing an apparently fairly unpopular position of linking the specific files inside of /bin instead of /bin directly, in opposition to what appears to be the majority of linux distros. He's even added a warning to dpkg and a "usrunmess" tool to switch a system to his preferred way of doing things. It's not clear to me where the breakage lies and I've not seen any actual reports of it. For more context see https://lwn.net/Articles/890219/ https://lwn.net/Articles/890219/
- jeroenhd 5y agoAs far as I know, the breakage is theoretical. Suppose a package has a boot-time, size-optimized, limited binary in /bin/runk and a user-optimized, feature-complete binary that requires the entire system to be up in /usr/bin/runk. When /bin and /usr/bin link to the same directory, the package manager will extract these files and run into a problem. Things become even more complicated when these tools are split into different packages (say runk-boot and runk-user). Tracking which file comes from which package can become near impossible. Of course this can be resolved relatively easily; make the package manager link-aware by handling the merged-bin setup as a special case and warn or error when files conflict. People don't seem to want to do that for various reasons, some good, some based in opinion only. It's a mess.
- naniwaduni 5y agoThis can also be resolved externally by controlling the repos and not fucking it up. Package conflicts are already a thing, Debian already has all the infra, you've always been able to cause the "theoretical" "breakage". Frankly, it's already a non-problem.
- pabs3 5y ago
- kajiryoji 5y agoArch and Gentoo does the same, though I don't think they break their respective package managers
- happymellon 5y agoFedora has too, and doesn't have any issues. Considering Debian is the only one that hasn't just switched, it does sound like a mountain out of a molehill for package manager breakage.
- chlorion 5y agoGentoo still uses the split setup by default. Unifying the directories is currently a work in progress and will eventually be the default from what I understand. It's possible that Gentoo will still support the split setup even after the default is changed since it supports many different inits and libcs but I am not sure.
- mlatu 5y agoyou are looking for the https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard