export PATH=$PATH:/opt/myapp/bin

Category: Environment & Config

export PATH=$PATH:/opt/myapp/bin

Add a directory to the PATH for the current session

Adds a new directory to PATH for the current session. Programs in /opt/myapp/bin can now be run by name.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.