Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-21-2004, 08:09 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
command not found error message


I have an executable program that I'm trying to run, but I keep getting a message stating, "command not found." The permissions on the program are -rwxrwxr-x and it still doesn't work. I have no idea of what else to do to run the program.

Old 10-21-2004, 08:21 PM   #2
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
What is the exact error message, the name of the program, and the command line you're using?

if you're running 'example' and get:
bash: example: command not found

then the shell doesn't know where the program is because it's not in a directory mentioned in $PATH - use a specific pathname
(e.g if example is in the current dir, try ./example instead)
Old 10-21-2004, 08:22 PM   #3
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
What is the name of the program? Is it possibly a script referring to some other program that is missing?

Running program "./foo" with command
strace -e trace=file ./foo
gives you a listing of files it tries to access when it is ran.
Old 10-21-2004, 08:30 PM   #4
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Type in the full path to the program as in
or if you are in the directory it is in put a . and a / in front of it

To find your PATH
echo $PATH


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
command not found error lordshipmayhem Linux - Newbie 4 06-28-2005 10:15 PM
sed error message: extra characters after the command. nano_mag Linux - General 3 05-15-2005 02:00 AM
c++ command not found error... ? Cheka Linux - Newbie 2 01-29-2005 04:43 PM
Error Message gcc: Command not found Schmurff Fedora 2 09-27-2004 01:23 PM
error message: Couldn't initialize SDL: Found no sufficiently capable X11 visuals JimBass Linux - Software 2 03-05-2004 08:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:05 PM.

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