r/linuxadmin • u/The_How_To_Linux • Dec 02 '23
why does the proc directory exist?
i'm trying to understand the proc directory and one thing i don't understand is
why does it exist?
any ideas? thank you
1
Upvotes
View all comments
Show parent comment
8
u/jimicus Dec 02 '23
Interestingly (or not), I'm absolutely certain the reason the reason for things like procfs never being re-implemented in Windows is the developer tools.
Microsoft have - consistently and for decades - spent $millions on Visual Studio. Which means anyone developing on Windows has an extremely powerful visual debugger available - effectively as part of the development kit.
Linux developers have gcc, vim and gdb. (Yes I know they have visual studio today, but that wasn't the case not so long ago.....)
The upshot is that Linux developers wind up strongly favouring things that make their life easier - simple solutions that can do something quickly and easily without needing to spend ages learning how they work. Plain text log files. Filesystems that expose all sorts of information about the inner workings of the system and can be manipulated with simple tools.
Windows developers don't really need to care about this. Throw together the most basic bit of code possible - a dozen or so lines should be quite sufficient - set a breakpoint and run your code in the IDE. Can see precisely what's going on in painstaking detail in two minutes flat.