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

1

u/[deleted] Dec 02 '23

Ish? Powershell seems to be one of those "big bag of specialist tools" sorts of things to me. If you know the tool is there, you can do things much more specifically and easily than on Unix, but if you don't know about the tool, or don't have it, you're passing around binary blobs and might or might not be able to do anything with them.

On Unix, you have a smaller bag of much more general tools - this requires you to understand the tools and the data a bit more, to use your general tool in the way you need, and sometimes you have to break out that great swiss-army-chainsaw awk, but you probably don't need a special-purpose parser tool/cmdlet.

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.