ubuntu add ot path code example Example 1: how to add a directory to path in linux export PATH="$HOME/bin:$PATH" Example 2: ubuntu export path $ source ~/.bashrc