“Everything is a file” is what made me start understanding linux few years ago and from there it got easier to use with each new concept.
Still this was really revolutionary to me when I first heard it. Made a bunch of things just click.
“Everything is a file” is what made me start understanding linux few years ago and from there it got easier to use with each new concept.
Still this was really revolutionary to me when I first heard it. Made a bunch of things just click.
deleted by creator
That might be part of it, but I was thinking it was more how things we don’t think of as files, like sockets, are accessed with a file descriptor.
Also hardware is treated like a file in /dev
Hell, Bash provides filesystem-based sockets in
/dev/tcp, so a tcp connection can almost be like Unix sockets or anything else.I always found it weird that it was specifically provided by Bash…
Mind you, the registry is also just a couple of files that are shown to the user as “the registry”. IIRC, on Windows, go into the user account’s root folder, and you’ll have NTUSER.dat. That’s the HKCU hive for that user.
And that’s precisely the difference. In both cases the configuration is data stored on disk but Linux presents it as files while Windows presents it as a registry tree. In Windows, you’re not supposed to edit the registry by interacting with NTUSER.dat as a file.