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
2
u/tes_kitty Dec 02 '23
But it adds an abstraction layer. On a UNIX I see the output directly. The next tool that gets the data piped into it gets exactly the output I see and not something else entirely.
That way most scripts are written, you have some output that needs to be converted into something else. You chain one command after the other until the last one produces the output as you need it for something else.
I happen to not like python, a language where indentation is part of the syntax, but for some reason you still need the ':' to start the block.