Linux Directory Structure - FHS - eviltoast
  • taaz@biglemmowski.win
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 months ago

    /sbin are system binaries, eg root only stuff, dunno the rest but I would guess there are some historical reasons for the bin usr/bin separation

    • superkret@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      I know the distinction between /bin and /sbin, I just don’t know what purpose it serves.

      Historically, /bin contained binaries that were needed before /usr was mounted during the boot process (/usr was usually on a networked drive).
      Nowadays that’s obsolete, and most distros go ahead and merge the directories.

      • linearchaos@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        2 months ago

        It’s easier to manage security that way.

        Instead of having one binary folder full of stuff that’s intended to be run with privilege access and non-privilege access, all the privileged stuff goes in sbin and you don’t even see it in your path as a regular user. It also means that access rights can be controlled at the folder level instead of the individual file level.