This is the output from ls -all
command :
-rwxr----- 1 subhrcho dba 3600 Nov 13 17:26 jdev
-rw-r----- 1 subhrcho dba 1566 Nov 13 17:26 jdev-Darwin.conf
-rw-r----- 1 subhrcho dba 347 Mar 6 2009 jdev-debug.boot
-rw-r----- 1 subhrcho dba 821 Nov 13 17:26 jdev-logging-debug.conf
-rw-r----- 1 subhrcho dba 584 Nov 13 17:26 jdev-logging.conf
-rw-r----- 1 subhrcho dba 4717 Jul 31 16:09 jdev.boot
-rw-r----- 1 subhrcho dba 12877 Nov 13 17:26 jdev.common
-rw-r----- 1 subhrcho dba 5047 Dec 6 01:43 jdev.conf
-rwxr-x--- 1 subhrcho dba 28160 Nov 13 16:28 jdev.exe
-rwxr-x--- 1 subhrcho dba 28672 Nov 13 16:28 jdev64.exe
-rwxr-x--- 1 subhrcho dba 28672 Nov 13 16:28 jdev64W.exe
-rwxr-x--- 1 subhrcho dba 28160 Nov 13 16:28 jdevW.exe
Now when I just run jdev
it runs a different version of Oracle JDveloper than when I run it as ./jdev
..Why is it so ?
which
utility can tell you what executable will be used if no path is given. – peterph Jan 22 '13 at 09:29type
to check what is launched by particular command. Causewhich
will show you just a binary somewhere in the $PATH, however it may be aliased to absolutely another binary. – rush Jan 22 '13 at 09:44[~] $which zsoelim /usr/bin/zsoelim [~] $ type zsoelim zsoelim is /usr/bin/zsoelim
. Whilezsoelim -> soelim
– Patryk Jan 22 '13 at 09:48which
has no chance of finding, since it is a standalone binary that doesn't have access to the running shell environment (by which I mean aliases and functions, not just the environment variables, some of which are inherited). – peterph Jan 22 '13 at 09:58