Browse - Programming Tips - How can a Linux program find out info about itself?

Date: 2017dec19
OS: Linux

Q.  How can a Linux program find out info about itself?

A.  The folder

/proc/self
Contains all sorts of juicy details about the current process. You can not simply `cat /proc/self/mem` Here how to do that: https://serverfault.com/questions/173999/dump-a-linux-processs-memory-to-file