Now let's add another directory to the list. You'll probably see the directories mentioned above, as well as perhaps some others, and they are all separated by colons. To see what's in your $PATH right now, type this into a terminal: echo $PATH You can do this easily by adding a directory to your $PATH.
Sometimes, you may wish to install programs into other locations on your computer, but be able to execute them easily without specifying their exact location. How does it know to look in the directories mentioned above? It's simple: They are a part of an environment variable, called $PATH, which your shell checks in order to know where to look. When you type a command into your Linux shell, it doesn't look in every directory to see if there's a program by that name. Free online course: RHEL Technical Overview.Running Kubernetes on your Raspberry Pi.