this post was submitted on 14 Sep 2026
293 points (99.7% liked)

linuxmemes

32780 readers
1445 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS
     
    top 21 comments
    sorted by: hot top controversial new old
    [–] JackbyDev@programming.dev 11 points 2 hours ago

    It makes more sense when you realize that it's not that everything is files it's that everything can be treated as a file. There are other APIs to interact with things, but everything can be interacted with as if it was a file. It doesn't seem as bonkers like this.

    [–] Flower@sh.itjust.works 2 points 2 hours ago (1 children)

    Well, if you go back far enough you might encounter punch cards or even switches, but then again you're not taking about modern computers anymore.

    [–] Axolotl_cpp@feddit.it 1 points 1 hour ago (1 children)

    You could argue that a collection of punch cards is a file

    [–] Flower@sh.itjust.works 1 points 46 minutes ago

    If you put them in a physical file and it gets jostled they go out of order and you have a problem. You want them in stacks.

    I think technically it's only a file when it's managed by the system itself (reading, writing, modifying, storing) so punch cards are not files.

    [–] BartyDeCanter@piefed.social 59 points 6 hours ago* (last edited 6 hours ago) (7 children)

    Stages of POSIX enlightenment:

    1. It couldn't possibly all be files
    2. It's all files
    3. What is a file, anyway?
    4. There's no such thing as a file
    5. It couldn't possibly all be files
    6. Everything is a file

    Most people stop at stage 2, stage 3 hits when you decide to write a filesystem, stage 4 when you've finished your first filesystem. Stage 5 is when you start working on kernel internals. No one can tell you how to reach stage 6, you must discover it for yourself.

    [–] Zozano@aussie.zone 1 points 16 minutes ago* (last edited 16 minutes ago)

    Files? In my Linux?

    It's more likely than you think.

    [–] Agent641@lemmy.world 6 points 1 hour ago (1 children)
    [–] Ensign_Crab@lemmy.world 3 points 53 minutes ago

    Can you read me?

    [–] rtxn@lemmy.world 3 points 2 hours ago

    "How can files be real if the filesystem isn't real?" - Jaden Smith (probably)

    [–] Sinthesis@lemmy.today 25 points 6 hours ago* (last edited 6 hours ago)

    /dev/null sez nothing is also a file

    [–] SpaceCowboy@lemmy.ca 19 points 6 hours ago (1 children)

    Unfortunately, no one can be told what a file is. You have to see it for yourself.

    This is your last chance. After this, there is no turning back. You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill - you stay in Wonderland and I show you how deep the file system goes.

    [–] swab148@lemmy.dbzer0.com 8 points 5 hours ago

    You'll know you've reached stage 6 when you seriously start considering running Plan 9 as a daily driver

    [–] Equinox1289@sh.itjust.works 4 points 6 hours ago (1 children)

    Okay, but what are blocks then? A file is really just a bunch of blocked stacked together with the inode metadata also sitting on another block, so is everything just blocks or because you can emulate a block device on a filesystem, are blocks themselves files? If that last part is true then files are infinitely recursive and my head is starting to spin.

    [–] BartyDeCanter@piefed.social 3 points 3 hours ago

    You are almost ready to take the next step. But to do so, you must unlearn what you think you know. Write a filesystem that does not have blocks for a media without pages, and you will find the footprints of your next teacher.

    [–] BlueKey@fedia.io 5 points 5 hours ago (1 children)

    But some things are directories (like cgroups). And Networknamespaces were also controled in a weird way.
    And then there are kernel features which are not exposed through a file or syscall but through a special type of socket.

    [–] Axolotl_cpp@feddit.it 3 points 1 hour ago* (last edited 1 hour ago)

    Aren't directories just files that say "hey i am directory ABCD and file X, Y and Z are my childs"?

    [–] Truscape@lemmy.blahaj.zone 36 points 8 hours ago

    Yep, takes a moment to wrap your head around but the longer you read linux/unix documentation, the more it makes sense why it is the case.

    [–] notptr@lemmy.cyberia9.org 9 points 7 hours ago

    Want take it to 11 plan 9 did it.

    [–] vivalapivo@lemmy.today 2 points 8 hours ago (1 children)
    [–] InternetCitizen2@lemmy.world 1 points 8 hours ago

    Yeah, but in the BSD land as their licensing is more Libertarian esqu.