How to add directory path to $PATH variable -

When you type a command into a Linux terminal, what's really happening is that a program is being executed. Normally, to execute a custom program or script, we need to use its full path, such as /path/to/ or just ./ if we're already in its residing directory. Alternatively, we can execute a lot of commands without specifying paths, like uptime or date, etc.

This is a companion discussion topic for the original entry at