Date: 13 Sep 2004 22:54:26 -0400 From: Mike Jeays <Mike.Jeays@rogers.com> To: robg <robg.list@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: showing which path a user program runs from? Message-ID: <1095130466.757.49.camel@chaucer> In-Reply-To: <5c389d3b04091319371aef7e73@mail.gmail.com> References: <5c389d3b04091319371aef7e73@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2004-09-13 at 22:37, robg wrote: > hi, say im the user 'rob' and i have the same program in two seperate > folders in my /home dir and run both.. if i run ps it shows me im > running both, but how can i find out which location folder is running > which program shown in ps The "which" command will tell you the fully-qualified path name of any executable that can be found in the $PATH variable. It will search in order of the directories in the path. So, if your program is "myprog", run the command "which myprog".
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1095130466.757.49.camel>