Linux Commands Examples

A great documentation place for Linux commands

pwdx

report current working directory of a process


see also : ps - pgrep

Synopsis

pwdx [options] pid [...]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
echo "\npwdx vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv\n"
pwdx $p &&
echo "\nptime vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv\n"
ptime $p
0
source
            
pid=$(xdotool getwindowpid $wid)
wd=$(pwdx $pid | cut -d ":" -f 2 | sed -e "s/^ //")
if [[ -n $wd ]]
then exec terminology -d "$wd"
fi
exec terminology

options

-V, --version

Output version information and exit.

-h, --help

Output help screen and exit.

reporting bugs

Please send bug reports to procps[:at:]freelists[:dot:]org (procps[:at:]freelists[:dot:]org)

standards

No standards apply, but pwdx looks an awful lot like a SunOS command.


see also

ps , pgrep


author

Nicholas Miell (nmiell[:at:]gmail[:dot:]com) wrote pwdx in 2004.

How can this site be more helpful to YOU ?


give  feedback