I'm new to the Linux environment and I noticed there are many programs of which we can use only the program name to start them in the Linux terminal.
E.g. gedit, vi, firefox
Instead of providing all of the program's path, I would like to run my own programs like this in the terminal by only typing the program name. Programs I like to run are written in Java and Python and script files (.jar, .pyc, .py and .class)
How should I proceed?