Ubuntu commonly used command records (continuously updated~)

(1) File operation commands

1. sudo
to obtain permissions

2. pwd
current path

3. ls
displays files in the current path

4. rm
rm + file name: delete the file
rm -v + file name: delete the file and display information
rm -f + file name: delete the file without asking
rm -r + directory name: delete the directory
rm -rf + Directory: delete directories and files

5. mkdir + folder name
to create a folder

6. Absolute path
starting point '/', ending point: the last directory

7. Relative path
starting point './', end point: the last directory

8. cd…(cd…/)
returns to the previous directory

9. cd.../...
return to the upper two levels of directory

10. cd ~
enter the home directory

(2) Graphics card information command

(1) nvidia-smi

1. Graphics card driver version

2. The graphics card supports the highest CUDA version

3. Graphics card name
(Name)

4. Fan speed
(Fan: 0%-100%, N/A means no fan)

5. Graphics card temperature
(Temp: too high a GPU temperature will lead to frequency reduction)

6. Graphics card performance status
(Perf: P0 (maximum performance)-P12 (minimum performance))

7. Graphics card power consumption
(Pwr: Usage/Cap, current power consumption/maximum power consumption)

8. Graphics card persistence mode status
(Persistence-M: turned off by default)

9. Graphics card bus
(Bus-Id)

10. Graphics card display initialization
(Disp.A: Display Active, indicating whether the GPU display is initialized)

11. Video memory usage
(Memory-Usage: currently occupied video memory size/total video memory size of the graphics card)

12. GPU usage
(Volatile GPU-UTil)

13. Graphics card error correction
(Uncorr. ECC: whether to enable error checking and error correction technology, 0/DISABLED, 1/ENABLED)

14. Compute mode
(Compute M: default mode)

15. Process
GPU: currently running graphics card number
PID: process number
Type: process type (C: computing process, G: graphics process, C+G: computing process + graphics process)
Process name: process name
GPU Memory Usage :GPU usage

16. watch -n 3 nvidia-smi
displays graphics card information every 3 seconds

17. nvidia-smi l 3
refreshes the graphics card information every 3 seconds

(2)nvcc --version
displays the current CUDA version information of the system

Guess you like

Origin blog.csdn.net/m0_47026232/article/details/124030764