problem in execution of a.out command

Asked by ananth padmanabh

if i execute a.out command in ubuntu , iam indicated by a error message : NO command found

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Mario Cianciolo
Solved:
Last query:
Last reply:
Revision history for this message
Best Mario Cianciolo (udda) said :
#1

I suppose you're trying to execute a program that you have just compiled, by writing "a.out" in a Terminal window.
If a program/command isn't in the default search folders (you can see them by typing "echo $PATH" in Terminal, separated each other by a colon) you have to provide an absolute/relative path to the program you want to run, e.g. /home/myname/a.out or ./a.out if it's in the current directory.

Revision history for this message
Artemy Vysotsky (artemyv) said :
#2
Revision history for this message
ananth padmanabh (padhu-an) said :
#3

Thanks Salvatore Udda, that solved my question.