how to change path of cuda samples code example Example: set cuda path $ echo 'export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}' >> ~/.bashrc