how to specify a path to run a command anywhere

Asked by changma

Hello
I cannot run simple bash command like echo, make or configure. Example: to install one package.
I did sudo apt-get install build-essential and I saw build-essential is already the newest version.
I did sudo aptitude update and sudo aptitude install openssh-client openssh-server
Now I try
cd ./Downloads (where I downloaded my android-sdk-linux_x86 package)
ls
cd ./android-sdk-linux_x86
configure
And the result: configure: command not found
People told me to specify a path to run a command anywhere but I'm not so smart..
I know that I must go under System->Administration->User and group->User setting->Change advanced user setting
And now ? which shell should I add ?

Thanks in advance

Question information

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

configure needs ./ too so the interpreter looks in the pwd.

Revision history for this message
changma (tizianolovesgia) said :
#2

Thanks , I resolved it typing in the terminal which name_command and adding it to the path.
I will remember to add ./ before configure thanks :)

Revision history for this message
changma (tizianolovesgia) said :
#3

Thanks actionparsnip, that solved my question.