How can i save a ./ executable as a terminal command? Like, so I don't longer have to type ./ in order to run the executable.
Asked
Active
Viewed 230 times
0
Psionikal
- 274
1 Answers
1
I am assuming that the application you would like to start is located at /some/path and you are trying to start a program called executable, please change accordingly
add
/some/pathto your$PATHvariable.- You can do this temporarily by typing
export PATH=$PATH:/some/path - To do this permanently, but only for the current user add the above command to the end of
~/.profile - To achieve this globally open the
/etc/environmentfile and make the end of thePATH="line read:/some/path"
- You can do this temporarily by typing
- link your executable to a path that is already on the
PATHvariable (echo $PATH) e.g.ln -s /some/path/executable ~/bin
mbeyss
- 1,038