I thought I’ll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance!

I’ll try my best to answer any questions here, but I hope others in the community will contribute too!

  • @neidu2@feddit.nl
    link
    fedilink
    8
    edit-2
    3 months ago

    What’s the difference between /bin and /usr/bin and /usr/local/bin from an architectural point of view? And how does sbin relate to this?

    • @bastion@feddit.nl
      link
      fedilink
      63 months ago

      There’s a standard. /usr was often a different partition.

      /bin - system binaries
      /sbin - system binaries that need superuser privileges
      /usr/bin - Normal binaries
      /usr/sbin - normal binaries that require superuser privileges
      /usr/local/bin - for executables that aren't 'packaged' - i.e., installed by you or some other program system-wide
      
        • @d3Xt3r@lemmy.nzM
          link
          fedilink
          English
          23 months ago

          Actually binaries can include non-executable files as well! Strictly speaking, a “binary” refers to pretty much any file that’s not plain-text (so if you tried to open a binary in a text editor, you’d see gibberish).

          • @bastion@feddit.nl
            link
            fedilink
            33 months ago

            Also, technically these will not just have binaries. I should have said executable, really, because scripts are there, too.