how can i show the size of files in /proc? it should not be size zero

Those are not really files on disk (as you mention) but they are also not files in memory – the names in /proc correspond to calls into the running kernel in the operating system, and the contents are generated on the fly.

The system doesn’t know how large the files would be without generating them, but if you read the “file” twice there’s no guarantee you get the same data because the system may have changed.

You might be looking for the program
sysctl -a

Leave a Comment