Dave's Brain

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

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.