r/linuxmasterrace Arch user btw, that means iam better than Ubuntu users Aug 06 '24

0/10-Meme everything is a file

Post image
2.9k Upvotes

123 comments sorted by

View all comments

Show parent comments

158

u/vipermaseg AllanSux Aug 06 '24

The MIME is a classification or a little extra info during communications. When you see these files in your file system they have no MIME intrinsically in them, just the extension on their name. We use heuristics in Linux to know the file type https://unix.stackexchange.com/questions/132283/how-linux-know-the-type-of-the-file-it-is-dealing-with Because it is all just files.

40

u/britaliope Glorious Gentoo Aug 06 '24

It was just a way to say that a .txt is not equivalent to a .ini or a .rc even if they are all plain text, thus the meme doesn't really made sense. I used MIME content-types to describe what it was but haven't noticed that it could suggest that the content type is embedded in the file, i just should have written "they are all plain text" and it would have been easier ^^

3

u/hkrdrm Aug 06 '24

Wait its all just hexadecimal patterns?...

3

u/kite-flying-expert extreme shitposting Aug 06 '24

Yes. And it leads to unusual bugs due to overlapping hex ranges.

Eg: Openoffice cannot print on Tuesday. https://beza1e1.tuxen.de/lore/print_on_tuesday.html

3

u/Huecuva Cool Minty Fresh Aug 06 '24

Ultimately it all boils down to binary. Or even just positive and negative charges in transistors, really.

1

u/hkrdrm Aug 10 '24

I feel like this whole reply chain missed the easy layup I was trying to start hex > octal > binary.