Original works, reproduced please specify the source: http://www.cnblogs.com/shrimp-can/p/5253672.html
1. Viewing tools
The default directory is: local, enter local:cd/usr/local
Input command: LS, view the files in this directory, you can see the installation of Cuda here
Enter Cuda file: CD cuda-7.5 (mine is 7.5), here for the installation of something
Locate the installed tool in the Bin directory, enter the directory where the Cuda file is located, and then go to the Bin directory: CD bin
Input command: LS, you can see the CUDA Toolkit comes with tools, these tools can be used directly.
The above tools, can be used through the terminal command, if you find the input Terminal command, but the display does not have the tool, there may be no added path.
2. Add a path
Input command: Export path=/usr/local/cuda-7.5/bin: $PATH
Export ld_library_path=/usr/local/cuda-7.5/lib64: $LD _library_path (I'm using cuda7.5 here, I need to lose according to my own version)
This way, the path is added, enter the command: NVCC-V checks if the path was added successfully, and if the result has NVCC, it is added successfully. So the toolkit inside the tool can be used directly in the terminal.
Ubuntu View installed Cuda Toolkit with its own tools and other installation files