What is PATH variable in Linux and how it works
The PATH variable is a list of directories that contains executable programs. It controls where your shell will look for commands on your system. When you enter a command in the terminal, such as grep, ls, or echo, the shell…



