If not, you get the command not found error.Īs we mentioned initially, specifying the absolute or full path of the directory where the program is installed/stored in your command is one way to overcome this error. If a path address is found, it executes the command successfully and returns the output. On macOS, when you run a command in the terminal, it searches for the path of the requested program in that command inside the PATH environment variable. Why Do You Need to Set the PATH Environment Variable? Talking about PATH, the variable contains a list of all the directories (for various programs added to the PATH) that the shell needs to search for to execute your requested programs through a terminal command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |