Source From Here
Question
What command(s) can one use to find out the current working directory (CWD) of a running process? These would be commands you could use externally from the process.
How-To
There are 3 methods that I'm aware of:
- pwdx: report current working directory of a process
- lsof: list open files of process
- /proc
Question
What command(s) can one use to find out the current working directory (CWD) of a running process? These would be commands you could use externally from the process.
How-To
There are 3 methods that I'm aware of:
- pwdx: report current working directory of a process
- lsof: list open files of process
- /proc
沒有留言:
張貼留言