add to beginning or end of path linux code example Example: how to add a directory to path export PATH="$HOME/bin:$PATH"