Directory process was started from ?

David Bandel david.bandel
Thu Jan 4 12:56:24 PST 2007


On 1/4/07, Dirk Moolman <DirkM at agilitytech.co.za> wrote:
> Hi, I have an interesting question (err, well, for me at least)
>
> Is there a way I can see which directory a process was started from ?
> Let's say I have an app, but in directory1 and also in directory2, and I
> start the app from one of them.
>
> Is there a way to see in the process list (ps) which directory it was
> started from ?

try:
fuser /directory1/progname

If fuser returns a pid, that's the one that's running.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto



More information about the Linux-users mailing list