export PATH=$PATH:/new/dir

Category: Shell & Bash

export PATH=$PATH:/new/dir

Add a new directory to the PATH environment variable

Adds a new directory to the PATH, which is the list of places the shell looks for executable programs. $PATH:newdir appends to the existing list.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.