showing which path a user program runs from?
Mike Jeays
Mike.Jeays at rogers.com
Mon Sep 13 19:54:28 PDT 2004
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".
More information about the freebsd-questions
mailing list