There are many info under /proc

For examples, for each process :

raw format :

cat /proc/< pid >/stat

human readable :

cat /proc/< pid >/status

My goal is to read the info available in


but in raw format. Is it possible ?

If not, are there other public APIs to read those values ? First steps, from bash or python.

addendum : I get this, not raw for me :

           CPU0       CPU1
0:  756703757          0    IO-APIC-edge  timer
1:          9          0    IO-APIC-edge  i8042

I expect only numbers, like in /stat

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.