Hi,
I've created a small program in C++ I would like to run like a command from the terminal. With that I mean that I can open the program from and in the terminal (as it is a console application) regardless of which directory I'm in, without having to specify the path to the program. I know how to arrange it so that I would only have to type /program_name, but I'm interested in how the above would work. Thanks in advance!
PATH
: see How to run a program without typing the full path? – steeldriver Jan 27 '16 at 22:22~/bin/program_name
. Then you can run it from anywhere viaprogram_name
. – Doug Smythies Jan 27 '16 at 22:52