The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
zarkanian@sh.itjust.works to Linux@lemmy.ml · 1 month ago

An amazing directory: /proc

lemmy.ml

message-square
45
link
fedilink
653

An amazing directory: /proc

lemmy.ml

zarkanian@sh.itjust.works to Linux@lemmy.ml · 1 month ago
message-square
45
link
fedilink
  • rockSlayer@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 month ago

    I know what a symlink is, but what is a magic symlink?

    • zarkanian@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      41
      ·
      1 month ago

      A symlink that has been blessed by Richard Stallman.

      • some_kind_of_guy@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 month ago

        Richard Stallman as St. IGNUcius

        “Now that’s a name I haven’t heard in a long time” - Saint IGNUcius

        • a_non_monotonic_function@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          Anyone else getting turned on rn?

        • diaphragmwp@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 month ago

          nintendo wii

    • Shadow@lemmy.ca
      link
      fedilink
      arrow-up
      17
      ·
      1 month 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
        ·
        1 month 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
          17
          ·
          1 month ago

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

          • gravitas_deficiency@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            11
            ·
            1 month ago

            Ah - it has its own special magical file system type, that’s the secret sauce. Neat!

            • Shadow@lemmy.ca
              link
              fedilink
              arrow-up
              10
              ·
              1 month ago

              /dev and /sys are the other two special ones

              • [object Object]@lemmy.world
                link
                fedilink
                arrow-up
                4
                ·
                1 month ago

                These days there can be a dozen virtual filesystems doing various stuff. If you ever want to get quite baffled, install a terminal emulator on an Android phone (not Termux) and run mount.

              • Hawke@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                1 month ago

                Remember the old days before /dev was its own virtual filesystem?

                • Shadow@lemmy.ca
                  link
                  fedilink
                  arrow-up
                  5
                  ·
                  1 month 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.

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 130 users / day
  • 985 users / week
  • 3.17K users / month
  • 6.73K users / 6 months
  • 2 local subscribers
  • 67.7K subscribers
  • 7.15K Posts
  • 87.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org