Add CUDA path to environment variables code example Example: set cuda path $ echo 'export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}' >> ~/.bashrc