[kanchilug] 1D1C - pwdx

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Sat, 7 Jan 2023 06:00:00 +0530

pwdx - report current working directory of a process

syntax
$ pwdx pid
$ pwdx pid1 pid2 pid3

for example change directory to /opt
$ cd /opt
$ sleep 100
check for pidof sleep
$ pidof sleep
66135

then check for dir with
$ pwdx <pid_sleep>
$ pwdx 66135
66135: /opt



regards,
T.Dhanasekar

Other related posts:

  • » [kanchilug] 1D1C - pwdx - Dhanasekar