how to add pwd to path variable linux code example Example: add pwd to path linux $ echo "export PATH=\$PATH:$(pwd)" >> ~/.bashrc