Can not find program in terminal
Hi there,
Does anybody know how can I make an executable to run from terminal? I have a program which when I type its name in the terminal I want the program to be loaded. Thank you. |
When you run a program in a terminal in searches your $PATH value so if you want a program to run like you say you either need to put it in a location on your path, or change your path to include a new place. Don't be tempted to put your "current" directory on your path though. Bad idea.
|
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 Code:
setenv PATH "/home/manolakis/some/program:$PATH" |
All times are GMT -5. The time now is 10:26 PM. |