this post was submitted on 14 Sep 2026
405 points (98.6% liked)

linuxmemes

32780 readers
966 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
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] BartyDeCanter@piefed.social 88 points 11 hours ago* (last edited 11 hours ago) (10 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.

    [–] chrash0@lemmy.world 3 points 1 hour ago

    true enlightenment: everything is a string over an IO socket

    [–] jj4211@lemmy.world 1 points 2 hours ago

    Missing stage 7: Not everything is a file.

    Linux is closer than other *nixes (sysctl equivalents in some platforms are not files, but they are files in Linux).

    However get very far into network and the file-like behaviors become more limited. From an application, at least you have a decent chance of having unseekable, but otherwise 'file-like' interaction with stream protocols. Then you need recvmsg/sendmsg. Then you want to deal with low level interaction with the network stack and dealing with NETLINK and such..

    [–] Bo7a@piefed.ca 2 points 3 hours ago

    And the hidden 0th level that you only get after being nearly killed by a falling server rack:

    "Files Aren't Things"

    Which looks great on a tshirt, btw :p

    [–] Agent641@lemmy.world 8 points 6 hours ago (1 children)
    [–] Ensign_Crab@lemmy.world 6 points 5 hours ago

    Can you read me?

    [–] Zozano@aussie.zone 3 points 4 hours ago* (last edited 4 hours ago)

    Files? In my Linux?

    It's more likely than you think.

    [–] rtxn@lemmy.world 6 points 7 hours ago

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

    [–] Sinthesis@lemmy.today 37 points 11 hours ago* (last edited 11 hours ago) (2 children)

    /dev/null sez nothing is also a file

    [–] Bluewing@lemmy.world 4 points 3 hours ago (1 children)

    Asking for a friend.

    If you can recognize "nothing" then "nothing" must be something right? So if nothing is a file, because /dev/null says so, then nothing MUST be something to be a file. And therefore /dev/null can't be nothing.

    Or do I just need more tea? Or maybe whisk(e)y?

    [–] HeHoXa@lemmy.zip 5 points 2 hours ago (2 children)

    The word "nothing" isn't itself nothing. It is something used to describe nothing.

    [–] gandalf_der_13te@feddit.org 1 points 17 minutes ago

    in fact that gets used in abstract mathematics to first introduce the natural numbers. the empty set (nothing) (which you define as 0) is not itself nothing, so you can define the set that contains just the empty set, which now is not empty itself, but contains one element, so you define that as 1 ...

    [–] Bluewing@lemmy.world 5 points 2 hours ago (1 children)

    The word "nothing" is the English word describing the concept of nothing. And I have to use the word to describe the concept. So yes, you are correct the word is itself "something". So that is probably one point for "nothing" to not exist.

    I have now consumed 3 cups of tea. And my head now hurts from thinking about nothing. I should never have stepped into this post.

    [–] kSPvhmTOlwvMd7Y7E@lemmy.world 1 points 1 hour ago (1 children)

    it's just a sentinel value. You ve reached the end. gimme back the length

    [–] Bluewing@lemmy.world 1 points 1 hour ago (1 children)
    [–] kSPvhmTOlwvMd7Y7E@lemmy.world 1 points 36 minutes ago

    oh god oh no oh god oh no i am gonna crash

    [–] sik0fewl@piefed.ca 1 points 2 hours ago

    A file would be something. No, it was nothing.

    [–] SpaceCowboy@lemmy.ca 23 points 11 hours ago (2 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 9 points 10 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 5 points 10 hours ago (2 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.

    [–] jj4211@lemmy.world 1 points 2 hours ago

    The devnode that is used to reference the block is a file, so you come back to blocks just 'being offsets into some file'.

    Though system calls, ioctls and networking credibly get away from file semantics

    [–] BartyDeCanter@piefed.social 4 points 7 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.