/proc Flashcards

1
Q

what is the /proc directory

A

it contains “virtual” files which represent a linux process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

get the command line arguments a PID was started with

A

/proc/PID/cmdline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

get all the PID environment variables

A

/proc/PID/environ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

check the program status and memory

A

/proc/PID/status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

view all the files a process has open

A

/proc/PID/fd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

check the kernel’s current stack for a PID

A

/proc/PID/stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

list a PID’s memory maps: shared libraries, heap, anonymous maps

A

/proc/PID/maps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly