pwdx command
shows working directory of a process
Typical usage: process analysis, troubleshootingIntroduction into pwdx
The pwdx tool is a very small tool with only one goal: show the current working directory of a process. It only required the process ID (PID) of a running process and then will show what the process is using as its value. This directory is used when no absolute path is given when performing some action to a path.
Project details
| Background information | |
|---|---|
| Author | Nicholas Miell |
Installation
When pwdx is not installed by default, it can be added to the system using the relevant software package.
Package information for pwdx
| Operating system | Package name | Installation |
|---|---|---|
| AlmaLinux | procps-ng | |
| Arch Linux | procps-ng | |
| Debian | procps | |
| Fedora | procps-ng | |
| Red Hat Enterprise Linux | procps-ng | |
| Rocky Linux | procps-ng | |
| openSUSE | procps | |
| Ubuntu | procps | |
Your Linux distribution using a different package? Share your feedback.
Usage
Frequently Asked Questions
What is the pwdx command and its purpose?
The pwdx command is a command-line tool to show the current working directory of a proces
Which package provides the pwdx command?
The command pwdx is provided by the procps or procps-ng package.
Related and similar commands
Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to pwdx:
| Command | Category | Summary |
|---|---|---|
| basename | files | Strips directory and file name suffix from a given path |
| chrt | processes | Sets Linux scheduler policy and priority for a process or command |
| kill | processes | Sending signals to processes |
| nice | processes | Runs commands with specified priority |
| numactl | processes | Controls NUMA policy for processes and shared memory |
| peekfd | processes | Tracks a process and show file descriptor activity |
| pidof | processes | Returns process IDs for a process name |
| pidstat | monitoring | Monitoring CPU, memory, and disk activity |
| pidwait | processes | Wait for process to stop |
| pmap | processes | Shows memory mapping of process |
| prtstat | processes | Shows process details for selected process like state, CPU and memory usage |
| pscap | capabilities | Display available capabilities for running processes |
| pslog | logging | Shows which log files a process has opened |
| pstree | processes | Show active processes and children like a tree |
| renice | processes | Changes the priority of running processes |
| slabtop | memory | Shows slab usage of kernel |
| smem | memory | Show memory usage including swap |
| strace | process inspection | Inspects running process |
| units | data conversion | Converts a unit into another one, like from Celcius to Fahrenheit |
| watch | processes | Monitors changes in output of specified command |
Also 💙 the command-line or terminal? Here is a set of cheat sheets for Linux to get more done from within the shell: