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?

Edit: Put up new version

Dark mode

Dark mode

      • jkozaka
        link
        fedilink
        English
        21 year ago

        Is that the only thing that changes between versions?

        • @callccOP
          link
          English
          11 year ago

          I added icons and corrected some things.

          • jkozaka
            link
            fedilink
            English
            1
            edit-2
            1 year ago

            Thanks for clearing that up, But are these changes only available in dark theme?

            Edit: rephrased the question.

  • Toaster
    link
    English
    61 year ago

    I am new to Linux, is this the current “standard” file system?

    • Korthrun
      link
      fedilink
      English
      201 year ago

      Bonus tip: Many distros make this info available on the cli by including a “hier” man page that you can read using the command “man hier”.

    • @callccOP
      link
      English
      71 year ago

      Yes, it is. FHS stands for Filesystem Hierarchy Standard.

      • Toaster
        link
        English
        71 year ago

        What an amazing cheat sheet then!

        I’m about to print this out to add to my pile, thanks for taking the time.

    • @callccOP
      link
      English
      91 year ago

      I think because they want to have files from different packages separate and easily addable and removable using symlinks.

      Also some things in the FHS make no sense for modern computers where storage is cheap and system storage is rarely shared amongst systems. The same applies for single-users/desktop machines. But it’s the only standard we have so, why not keep it for now.

  • SciPiTie
    link
    fedilink
    English
    5
    edit-2
    1 year ago

    This is really helpful, thank you!

    I never understood why the shareable /usr is parent to the non shareable /usr/local. Wouldn’t a /usr/shared be way easier especially in the early network days?

    If anyone has a link or some insights into this historical nitbit I’d highly appreciate it!

    • @[email protected]
      link
      fedilink
      English
      211 months ago

      No comment on sensibility, but technically both are equally difficult - mount the parent filesystem, then mount the child filesystem into an empty directory in the parent. Doesn’t matter which one is where, it’s all abstracted away at this level anyway.

      • SciPiTie
        link
        fedilink
        English
        211 months ago

        But when I mount a shared /usr on a remote machine it will always have the mount point /usr/local as empty folder - and either have an empty folder or have a mount target that is dependent on a network resource - that’s why for me it’s so unintuitive.

        But then again I started with network stuff way more than a decade after all this got created 🤣

        • @[email protected]
          link
          fedilink
          English
          211 months ago

          I think the idea at the time was that if /usr is unavailable, you won’t be doing much with the system anyway (other than fixing the configuration).

          Nevermind, apparently the original meaning had nothing to do with a network (TIL for me), so our discussion is kinda moot. See section 0.24 in this 2.9BSD (1983) installation guide

          Locally written commands that aren’t distributed are kept in /usr/src/local and their binaries are kept in /usr/local. This allows /usr/bin, /usr/ucb, and /bin to correspond to the distribution tape (and to the manuals that people can buy). People wishing to use /usr/local commands are made aware that they aren’t in the base manual.

          • SciPiTie
            link
            fedilink
            English
            211 months ago

            Ohhh now that is awesome and makes sense! Thanks a lot for that find :)

  • @[email protected]
    link
    fedilink
    English
    31 year ago

    I’ve never seen /etc/opt used. Usually if an app is in /opt, the entire app is there, including its config which is frequently at /opt/appname/etc/.

  • @[email protected]
    link
    fedilink
    English
    31 year ago

    I have 2 questions:

    Do I understand the colors correctly in that /home is deprecated and shouldn’t be used? What’s the alternative in that case?

    Where would you guys put configuration files for services? /srv seems like an adequate directory

    • @[email protected]
      link
      fedilink
      English
      2
      edit-2
      1 year ago

      I’m trying to remember this correctly, but traditionally /home is a symlink of /usr/home. I think that’s deprecated and you should now just have /home

  • @ChunkMcHorkle
    link
    English
    21 year ago

    New to Linux, this is fantastic. Thank you.

  • @[email protected]
    link
    fedilink
    English
    111 months ago

    Where to mount permanent HDDs? Always thought it was in /mnt but the description says it’s for temporarily filesystems…

    • @callccOP
      link
      English
      111 months ago

      I think the FHS doesn’t really tell you where. In the end you can out them wherever you want as long there is no conflict with the FHS. Even /mnt/something seems fine. Just not really recommended.