3 ms·
The filename suffix isn't much more than part of the filename (a simple variable name in that analogy) - it's more convention than constraint. Nobody is stoppin
by whilenot-dev 2y ago
The filename suffix isn't much more than part of the filename (a simple variable name in that analogy) - it's more convention than constraint. Nobody is stopping you from giving your file the name you want (and the OS allows). You'd use literal magic[0] to assume an actual type.
"Everything is a file" rather refers to the fact that every resource in UNIX(-like) operating systems is accessible through a file descriptor: devices, processes, everything, even files =)
[0]: https://www.man7.org/linux/man-pages/man4/magic.4.html https://www.man7.org/linux/man-pages/man4/magic.4.html
- mdaniel 2y agoAnd the good(sic) thing about conventions: so many to choose from! .htm .html .HTML .jpeg