add path to bash linux code example Example 1: linux add to path export PATH=$PATH:/place/with/the/file Example 2: ubuntu export path $ source ~/.bashrc