/proc Flashcards
1
Q
what is the /proc directory
A
it contains “virtual” files which represent a linux process
2
Q
get the command line arguments a PID was started with
A
/proc/PID/cmdline
3
Q
get all the PID environment variables
A
/proc/PID/environ
4
Q
check the program status and memory
A
/proc/PID/status
5
Q
view all the files a process has open
A
/proc/PID/fd
6
Q
check the kernel’s current stack for a PID
A
/proc/PID/stack
7
Q
list a PID’s memory maps: shared libraries, heap, anonymous maps
A
/proc/PID/maps