• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pwdx Command Examples in Linux

by admin

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:

# pwdx 1210

2. To get the pwdx version:

# pwdx -V 

Filed Under: Linux

Some more articles you might also be interested in …

  1. How To Separate Each Of Syslog Client’s Messages Into Different File (CentOS/RHEL 6 and 7)
  2. cloud-init Command Examples in Linux
  3. How to Back Up and Restore XFS File Systems (xfsdump / xfsrestore)
  4. What are different Samba Server Types
  5. CentOS / RHEL : How to install and start the Apache httpd service
  6. pacman Command Examples in Linux (Cheat Sheet)
  7. How to Partition DM-Multipath Pseudo Devices in CentOS/RHEL
  8. groupmems Command Examples in Linux
  9. How to Configure Network Interface Teaming in CentOS/RHEL 7 and 8
  10. CentOS/RHEL 6 Kernel Panic – “Out of memory” kernel parameter panic_on_oom is enabled

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright