export path mongodb bash code example Example: add mongodb path to bashrc export PATH="/home/cassio/mongodb/mongodb-linux-x86_64-2.4.9/bin:$PATH"