LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2010, 11:26 AM   #1
go.seba.go
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
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!
 
Old 11-18-2010, 11:45 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
1 members found this post helpful.
Old 11-18-2010, 11:52 AM   #3
go.seba.go
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
As you say if I specify "./" before the name of the Exec he knows where to look at! Thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jar Execution IceXaos Linux - Software 1 07-02-2010 10:06 AM
Execution Time Sanjib_Sur Linux - Newbie 3 12-02-2008 01:20 PM
remote execution chowdhurysoumyadeep Linux - Networking 3 09-19-2008 08:23 AM
.cache/session files execution place santhosh.linux Programming 0 06-28-2006 06:43 AM
How to tell where the execution is going on right now? bahadur Programming 7 04-03-2005 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration