You are not logged in.
Pages: 1
I had been doing some installation work, and I was suprised to learn that /usr/sbin, /bin and /sbin are all symbolic links to /usr/bin. Can someone confirm that this is correct?
Offline
This is because the likes of "sbin" are obsolete relics.
Offline
From what I've gathered, the bin/sbin separation is to keep "system command" (i.e. commands you will likely not run in your everyday shell) from popping up in the tab-completing and from users running them carelessly. That merge is not treated in the article linked by brebs, as it is not directly related to the / vs /usr separation (but equally arbitrary).
From what I've seen, Fedora and Debian keep bin/sbin separate (and latter also makes the / vs /usr merge optional, but I guess this is just Debian being Debian). Gentoo seems to have followed the same way as Arch (full merge of everything into /usr/bin).
--edit--
Actually, following this mailing list thread, Gentoo's situation is not quite clear to me
Last edited by ayekat (2016-11-29 10:45:13)
Offline
Offline
From what I've gathered, the bin/sbin separation is to keep "system command" (i.e. commands you will likely not run in your everyday shell) from popping up in the tab-completing and from users running them carelessly. That merge is not treated in the article linked by brebs, as it is not directly related to the / vs /usr separation (but equally arbitrary).
From what I've seen, Fedora and Debian keep bin/sbin separate (and latter also makes the / vs /usr merge optional, but I guess this is just Debian being Debian). Gentoo seems to have followed the same way as Arch (full merge of everything into /usr/bin).
--edit--
Actually, following this mailing list thread, Gentoo's situation is not quite clear to me
I thought Fedora had it setup similarly to Arch now though I would need to check. I'm pretty sure Suse has them separated as well.
If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr
Offline
popping up in the tab-completing and from users running them carelessly
That can be fixed by e.g.:
chmod 700 /usr/bin/only-root-should-run-this
With sbin dirs, it was debatable whether some of the executables should be in sbin or bin - very messy.
The clincher for me was when Java's (either openjdk or icedtea, IIRC) installer hard-coded one of those sbin paths for where it expected to find an executable, rather than just looking in $PATH - such madness
Offline
Pages: 1