• Shadow@lemmy.ca
      link
      fedilink
      arrow-up
      15
      ·
      5 hours ago

      If you delete a file that’s still open by the app, the link in proc will still exist and you can copy the file back out of proc.

      • RustySharp@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        4 hours ago

        Does that not make them a hard link (pointing to a filesystem node) instead of a symlink (pointing to another filename)?

        • Shadow@lemmy.ca
          link
          fedilink
          arrow-up
          11
          ·
          4 hours ago

          No, you can’t have a hard link cross filesystems and proc is its own fs type.

                • Shadow@lemmy.ca
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  8 minutes ago

                  It still is! If you try and boot a kernel with nothing in /dev, you won’t get most of the kernel boot messages since /dev/console doesn’t exist. You need a basic set of device nodes in /dev before udev is started.

                  If you’re going to rsync a system to new hardware and exclude /dev /proc /sys, it’s better to setup a new mount of your / to a different directory and sync off that, so you get the underlying stuff without the cruft.