Ubuntu – “Envoriment variable PATH” on Ubuntu

aptbashcommand line

When we install a program using apt-get, after installed it's available in terminal, normally, when we just call "your name" independent of context directory we are.

On Windows, when we add a path to envoriment variables in variable PATH all programs or files in this path are available in terminal (prompt command) to be called.

In Ubuntu, how does it when we want to make a program callable but it is a standalone file installed without apt-get or aptitude?

Best Answer

  • On Linux as well as on Windows we can add a path to the environment variable $PATH and all programs in this path will be available as shell commands. This topic is covered by the questions:

    On Linux is also available and different approach. Here are few available standard directories where we can put our executable files or symbolic links to them. This topic is covered by the questions: