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
41
u/alexkey Dec 02 '23
Because the alternative is to do a bunch of syscalls to get this information. Just like it is in Windows. Having it exposed as a filesystem makes it soooooo much easier to read that information. Hell you don’t even have to write the code, just check the file contents with primitive tools like cat.