RetroFed Forum
Your home away from modern life.
Blew My Mind Into Orbit
Post Reply
AuthorMessage
alectronic piefed.zip alectronic@piefed.zip
Joined: 2026-03-27
Quote

562   Original
cub Gucci lemmy.today vivalapivo@lemmy.today
Joined: 2025-06-15
#2 · Quote Reply

Epstein's?

5
Truscape lemmy.blahaj.zone Truscape@lemmy.blahaj.zone
Joined: 2025-06-20
#3 · Quote Reply

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.

46
InternetCitizen2 lemmy.world InternetCitizen2@lemmy.world
Joined: 2023-06-16
#4 · Quote Reply

Epstein's?

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

2
notptr lemmy.cyberia9.org notptr@lemmy.cyberia9.org
Joined: 2026-03-25
#5 · Quote Reply

Want take it to 11 plan 9 did it.

12
BartyDeCanter piefed.social BartyDeCanter@piefed.social
Joined: 2026-05-02
#6 · (edited) Quote Reply

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.

124
Sinthesis lemmy.today Sinthesis@lemmy.today
Joined: 2024-12-10
#7 · (edited) Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

/dev/null sez nothing is also a file

56
SpaceCowboy lemmy.ca SpaceCowboy@lemmy.ca
Joined: 2023-06-17
#8 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

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.

26
Equinox1289 sh.itjust.works Equinox1289@sh.itjust.works
Joined: 2026-05-14
#9 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

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.

6
swab148 lemmy.dbzer0.com swab148@lemmy.dbzer0.com
Joined: 2025-06-04
#10 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

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

15
NeatNit discuss.tchncs.de NeatNit@discuss.tchncs.de
Joined: 2024-01-05
#11 · Quote Reply

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.

https://xkcd.com/566/

34
BlueKey fedia.io BlueKey@fedia.io
Joined: 2024-03-11
#12 · Quote Reply

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.

6
BartyDeCanter piefed.social BartyDeCanter@piefed.social
Joined: 2026-05-02
#13 · Quote Reply

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.

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.

4
Err(()).unwrap() Moderator rtxn@lemmy.world
Joined: 2023-06-24
#14 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

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

10
JackbyDev programming.dev JackbyDev@programming.dev
Joined: 2023-06-13
#15 · Quote Reply

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.

54
🌸𝓯𝓵𝓸𝔀𝓮𝓻🌸 sh.itjust.works Flower@sh.itjust.works
Joined: 2026-04-29
#16 · Quote Reply

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.

6
Agent641 lemmy.world Agent641@lemmy.world
Joined: 2023-07-12
#17 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

Am I a file?

10
Axolotl feddit.it Axolotl_cpp@feddit.it
Joined: 2025-10-10
#18 · (edited) Quote Reply

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.

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

9
Ensign_Crab lemmy.world Ensign_Crab@lemmy.world
Joined: 2023-06-29
#19 · Quote Reply

Am I a file?

Can you read me?

9
Zozano aussie.zone Zozano@aussie.zone
Joined: 2023-07-09
#20 · (edited) Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

Files? In my Linux?

It's more likely than you think.

5
notabot piefed.social notabot@piefed.social
Joined: 2025-06-04
#21 · Quote Reply

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

Directories are just files if you squint at then right, and sockets are basically files too. As another commenter said, it's not that everything is literally a file, but that it presents as a file, and can be interacted with as one.

5
Bo7a piefed.ca Bo7a@piefed.ca
Joined: 2025-06-10
#22 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

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

4
Bluewing lemmy.world Bluewing@lemmy.world
Joined: 2024-10-25
#23 · Quote Reply

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.

What's this "back far enough" shit, I've used punch cards and punch tape.

Fuck me I'm old.

9
Bluewing lemmy.world Bluewing@lemmy.world
Joined: 2024-10-25
#24 · Quote Reply

/dev/null sez nothing is also a file

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?

9
Bluewing lemmy.world Bluewing@lemmy.world
Joined: 2024-10-25
#25 · Quote Reply

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.

That way lies madness!

2
🌸𝓯𝓵𝓸𝔀𝓮𝓻🌸 sh.itjust.works Flower@sh.itjust.works
Joined: 2026-04-29
#26 · Quote Reply

What's this "back far enough" shit, I've used punch cards and punch tape. Fuck me I'm old.

To feel really old: http://themindsetlist.com/lists/

2
jj4211 lemmy.world jj4211@lemmy.world
Joined: 2023-06-16
#27 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

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..

4
jj4211 lemmy.world jj4211@lemmy.world
Joined: 2023-06-16
#28 · Quote Reply

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.

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

1
HeHoXa lemmy.zip HeHoXa@lemmy.zip
Joined: 2026-04-08
#29 · Quote Reply

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?

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

12
absentbird lemmy.world absentbird@lemmy.world
Joined: 2025-06-04
#30 · (edited) Quote Reply

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.

Exactly. A file is really just a way to understand a collection of bits. So saying everything is files is like saying everything in computers can be described as sets of bits, which is not a terrible heuristic.

18
sik0fewl piefed.ca sik0fewl@piefed.ca
Joined: 2025-07-06
#31 · Quote Reply

/dev/null sez nothing is also a file

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

2
Bluewing lemmy.world Bluewing@lemmy.world
Joined: 2024-10-25
#32 · Quote Reply

To feel really old: http://themindsetlist.com/lists/

That's funny. I have a pair of Converse tennis shoes that are 27 years older than that list......

2
Bluewing lemmy.world Bluewing@lemmy.world
Joined: 2024-10-25
#33 · Quote Reply

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

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.

11
BobWehadababyitsaboy lemmy.world BobWehadababyitsaboy@lemmy.world
Joined: 2023-10-21
#34 · Quote Reply

Exactly. A file is really just a way to understand a collection of bits. So saying everything is files is like saying everything in computers can be described as sets of bits, which is not a terrible heuristic.

It's like saying everything is a wave IRL.

15
chrash0 lemmy.world chrash0@lemmy.world
Joined: 2024-03-03
#35 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...

true enlightenment: everything is a string over an IO socket

12
nullptr lemmy.world kSPvhmTOlwvMd7Y7E@lemmy.world
Joined: 2023-06-15
#36 · Quote Reply

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.

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

3
Bluewing lemmy.world Bluewing@lemmy.world
Joined: 2024-10-25
#37 · Quote Reply

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

The length is a null value.

4
nullptr lemmy.world kSPvhmTOlwvMd7Y7E@lemmy.world
Joined: 2023-06-15
#38 · Quote Reply

The length is a null value.

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

3
gandalf_der_13te feddit.org gandalf_der_13te@feddit.org
Joined: 2026-08-01
#39 · Quote Reply

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

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 ...

5
gandalf_der_13te feddit.org gandalf_der_13te@feddit.org
Joined: 2026-08-01
#40 · (edited) Quote Reply

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.

tldr: it's to have nicer, less complicated I/O operations

it enables just having two API calls: read() and write() to do everything

7
Possibly linux lemmy.zip possiblylinux127@lemmy.zip
Joined: 2023-06-26
#41 · Quote Reply

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.

Files don't actually exist once you dig down

8
thorcik lemmy.world thorcik@lemmy.world
Joined: 2023-06-11
#42 · Quote Reply

Am I a file?

Hope your name isn't Peter

7
InternetCitizen2 lemmy.world InternetCitizen2@lemmy.world
Joined: 2023-06-16
#43 · Quote Reply

It's like saying everything is a wave IRL.

Especially the particles

8
beejboytyson lemmy.world beejboytyson@lemmy.world
Joined: 2024-06-22
#44 · Quote Reply

But what about the fotoes?

1
alectronic piefed.zip alectronic@piefed.zip
Joined: 2026-03-27
#45 · Quote Reply

But what about the fotoes?

I suspect sarcasm but in case it is not, photos are just binary files, just like videos and many other file formats.

2
AnimalsDream slrpnk.net AnimalsDream@slrpnk.net
Joined: 2024-06-29
#46 · Quote Reply

21
JackbyDev programming.dev JackbyDev@programming.dev
Joined: 2023-06-13
#47 · Quote Reply

Files don't actually exist once you dig down

Yeah, it sort of depends on the definition of the word file. "File" in the sense that it can be interacted with like a file versus "file" in the sense that it's data on a disk. But then, if you're really thinking about it, data on a disk isn't a file, it's data, and we can just interact with it like a file.

9
call_me_xale lemmy.zip call_me_xale@lemmy.zip
Joined: 2023-07-23
#48 · Quote Reply

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 re...

That's where plan9 comes in!

3
socsa piefed.social socsa@piefed.social
Joined: 2024-08-20
#49 · Quote Reply

Stages of POSIX enlightenment: It couldn't possibly all be files It's all files What is a file, anyway? There's no such thing as a file It couldn't possibly all be files 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 yo...
  1. Everything is a FIFO
5
socsa piefed.social socsa@piefed.social
Joined: 2024-08-20
#50 · Quote Reply

Files don't actually exist once you dig down

Bro stop digging I need those files to keep existing

15
heartSagan5 lemmy.zip heartSagan5@lemmy.zip
Joined: 2026-05-27
#51 · Quote Reply

In Windows land, it's HANDLEs...which is typedef void* HANDLE IIRC

6
Post Reply Page 1 of 2   Goto page 1, 2 Last »
Back to top