The pwdx command prints the current working directory of a process. The current working directory of a process can be displayed using the pwdx command as shown below:

pwdx command in Linux

You can also get the working directory of multuple process by specifying the PIDs on the same line. For example:

# pwdx [pid01] [pid02] [pid03] ...

pwdx Command Examples

1. To get the current working directory of a process with PID 1210:

2. To get the pwdx version: