“Everything is a file” is what made me start understanding linux few years ago and from there it got easier to use with each new concept.

Still this was really revolutionary to me when I first heard it. Made a bunch of things just click.

    • JayDee@lemmy.sdf.org
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      20 hours ago

      It’s more a philosophy for Unix systems. When we say that “everything is a file”, we’re saying that even devices should show up on the filesystem (/dev), even network ports should show up on the filesystem, even processes should show up on the filesystem(/proc), etc… and that is as opposed to having a different system abstraction handle those functions instead.

      Of course when you look deeper into it, linux does not explicitly follow that rule, it more just adheres to it. It’s more a guideline than an explicit statement of fact

    • Zagorath@aussie.zone
      link
      fedilink
      arrow-up
      5
      ·
      21 hours ago

      Yeah I’m interested in how that works too.

      I’ve recently been looking at the Nextcloud “all in one” Docker image. It works by mounting the docker.sock file into the master container, which allows that container to stand up a whole bunch of other containers on your machine.

      How would that work on Windows, if the Docker socket isn’t a file handle?

      • MCHEVA@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        7 hours ago

        AIO is a fun one to setup. I found it much easier with portainer. The thing that always catches me with Docker is the permissions after it’s setup. I had nextcloud up for a week I could access my external hdd over Webdav and nothing else haha.

        • Zagorath@aussie.zone
          link
          fedilink
          arrow-up
          3
          ·
          20 hours ago

          and MacOS

          Oh that’s interesting. I wonder why they do it that way, considering macOS is a Unix OS.

          • Peruvian_Skies@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            17 hours ago

            I just said that Docker Desktop handles it. I’ve never used a Mac so I don’t know for sure what’s going on under the hood there but I imagine that everything they can do the same between Mac and Linux, they do. It’s easier that way.