LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Execution place (https://www.linuxquestions.org/questions/linux-newbie-8/execution-place-845102/)

go.seba.go 11-18-2010 11:26 AM

Execution place
 
Hello,

I don't understand why the following happens when I try to launch an exec from the terminal:

When I am in the same directory of the exec IT DOES NOT WORK:
Code:

giorgio@belva:~/eclipse$ eclipse
The program 'eclipse' is currently not installed.  You can install it by typing:
sudo apt-get install eclipse-platform

BUT IF I am one step higher in the directories' hierarchy IT DOES WORK:

Code:

giorgio@belva:~$ eclipse/eclipse
This happens with all exec in every place...
Why is that?
Thank you in advance for your help!

TobiSGD 11-18-2010 11:45 AM

Your directory is not in the $PATH variable, and Linux never looks in the current directory. If you go one level up and specify a subdirectory Linux knows where to look.

go.seba.go 11-18-2010 11:52 AM

As you say if I specify "./" before the name of the Exec he knows where to look at! Thank you!


All times are GMT -5. The time now is 07:23 AM.