Loading...
CONCEPT

What is PATH?

Learn what the PATH environment variable is and how it helps the shell find commands.

avatar
TropicolX
Concept Author
3 min reading time

When a command like ls or python is executed, a shell needs to know where to find the corresponding executable file.

To do this, shells use the PATH environment variable.

In this concept, we'll learn what the PATH variable is, how a shell uses it to find commands, and how to view and modify it.