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