You have to add the directory which contains the program to the PATH environment variable. Suppose it is under /home/manolakis/some/program, just do
Code:
export PATH=/home/manolakis/some/program:$PATH
then type the name of the executable, press enter and the trick is done. Take in mind that changes to environment variables are local to the current shell, that is if you open a new terminal you have to export the new PATH again, unless you put the export statement in a file which is sourced whenever a new shell session is open (for example in $HOME/.bashrc). The above command assumes you're using sh/bash as shell. If you use a C-shell (csh/tcsh) the syntax is
Code:
setenv PATH "/home/manolakis/some/program:$PATH"