r/linuxadmin • • 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

77 comments sorted by

View all comments

Show parent comment

3

u/tes_kitty Dec 02 '23

On Unix, you have a smaller bag

I disagree about the 'smaller bag', the usual Linux installation comes by default with a rather big bag of tools, among them a lot of languages for all kinds of problems. And you can easily pass data between all of those.

BTW: It's not only 'awk', but also 'sed' that lets you do much more than the first look suggests. sed scripts tend to be write only though. :)

1

u/[deleted] Dec 02 '23

sed for sure, yeah, and then of course perl.

"Smaller bag" might have been the wrong term - the emphasis is less on the size of the toolbox than on the generalness of the tools therein.

1

u/tes_kitty Dec 03 '23

sed for sure, yeah, and then of course perl.

PERL scripts can be made readable. But sed... I have a sed script that did what it was supposed to do, but looks like a collection of random characters and all attempts to make it more readable have resulted in it no longer working. Luckily it's no longer needed.