当前位置:   article > 正文

Ubuntu指令汇总_nvidia gv102

nvidia gv102

查看显卡型号: 

  1. 查看集成显卡:
  2. lspci |grep -i vga
  3. 查看NVIDIA显卡:
  4. lspci |grep -i nvidia

 查看系统硬件信息:

  1. CPU:
  2. # 查看 cpu 的统计信息
  3. $ lscpu
  4. Architecture: x86_64
  5. CPU op-mode(s): 32-bit, 64-bit
  6. Byte Order: Little Endian
  7. CPU(s): 64
  8. On-line CPU(s) list: 0-63
  9. Thread(s) per core: 2
  10. Core(s) per socket: 16
  11. Socket(s): 2
  12. NUMA node(s): 2
  13. Vendor ID: GenuineIntel
  14. CPU family: 6
  15. Model: 85
  16. Model name: Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz
  17. Stepping: 7
  18. CPU MHz: 2294.616
  19. BogoMIPS: 4594.28
  20. ......
  21. # /proc/cpuinfo 包含 cpu 的详细信息,如型号、主频等
  22. $ cat /proc/cpuinfo
  23. processor : 0
  24. vendor_id : GenuineIntel
  25. cpu family : 6
  26. model : 85
  27. model name : Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz
  28. stepping : 7
  29. microcode : 0x5002f01
  30. cpu MHz : 2294.616
  31. cache size : 22528 KB
  32. ......
  33. # 查看 cpu 型号
  34. $ cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
  35. 64 Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz
  36. # 查看 cpu 数量
  37. $ cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
  38. 2
  39. # 查看每个 cpu 的核心数
  40. $ cat /proc/cpuinfo | grep "cpu cores" | uniq
  41. cpu cores : 16
  42. # 查看每个核心的线程数
  43. $ cat /proc/cpuinfo | grep "processor" | wc -l
  44. 64

  1. 内存:
  2. # 查看内存使用情况,参数 -m 以 megabytes 为单位输出
  3. $ free -m
  4. total used free shared buff/cache available
  5. Mem: 128343 51772 4333 186 72237 75399
  6. Swap: 4095 0 4095
  7. # /proc/meminfo 包含了内存的详细使用信息
  8. $ cat /proc/meminfo
  9. MemTotal: 131423944 kB
  10. MemFree: 2672916 kB
  11. MemAvailable: 76649028 kB
  12. Buffers: 152 kB
  13. Cached: 70588932 kB
  14. SwapCached: 100 kB
  15. Active: 78479944 kB
  16. Inactive: 43857400 kB
  17. Active(anon): 43494740 kB
  18. Inactive(anon): 8445316 kB
  19. Active(file): 34985204 kB
  20. ......
  21. # 查看内存硬件信息,参数 -t 指定类型
  22. $ dmidecode -t memory
  23. # dmidecode 3.2
  24. # SMBIOS entry point at 0x68e3b000
  25. Found SMBIOS entry point in EFI, reading table from /dev/mem.
  26. SMBIOS 3.2 present.
  27. Handle 0x1000, DMI type 16, 23 bytes
  28. Physical Memory Array
  29. Location: System Board Or Motherboard
  30. Use: System Memory
  31. Error Correction Type: Multi-bit ECC
  32. Maximum Capacity: 7680 GB
  33. Error Information Handle: Not Provided
  34. Number Of Devices: 24
  35. Handle 0x1100, DMI type 17, 84 bytes
  36. Memory Device
  37. Array Handle: 0x1000
  38. Error Information Handle: Not Provided
  39. Total Width: 72 bits
  40. Data Width: 64 bits
  41. Size: 16384 MB
  42. Form Factor: DIMM
  43. Set: 1
  44. Locator: A1
  45. Bank Locator: Not Specified
  46. Type: DDR4
  47. Type Detail: Synchronous Registered (Buffered)
  48. Speed: 2933 MT/s
  49. Manufacturer: 00AD00B300AD
  50. Serial Number: 93440CDD
  51. Asset Tag: 01193161
  52. ......
  1. 硬盘:
  2. # 列出硬盘和分区情况
  3. $ lsblk
  4. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  5. sda 8:0 0 256G 0 disk
  6. sdb 8:16 0 256G 0 disk /
  7. # 查看硬盘和分区的详细信息
  8. $ fdisk -l
  9. Disk /dev/sda: 1919.7 GB, 1919716163584 bytes, 3749445632 sectors
  10. Units = sectors of 1 * 512 = 512 bytes
  11. Sector size (logical/physical): 512 bytes / 4096 bytes
  12. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  13. Disk label type: gpt
  14. # Start End Size Type Name
  15. 1 2048 411647 200M EFI System EFI System Partition
  16. 2 411648 1435647 500M Microsoft basic
  17. 3 1435648 3749443583 1.8T Linux LVM
  18. ......
  1. 网卡:
  2. # 查看网卡硬件信息,参数 -i 忽略大小写
  3. $ lspci | grep -i ethernet
  4. 01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
  5. 01:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
  1. 显卡:
  2. # 参数 -i 忽略大小写
  3. $ lspci | grep -i vga
  4. 03:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
  5. 3b:00.0 VGA compatible controller: NVIDIA Corporation GV102 (rev a1)
  6. 86:00.0 VGA compatible controller: NVIDIA Corporation GV102 (rev a1)
  7. af:00.0 VGA compatible controller: NVIDIA Corporation GV102 (rev a1)
  1. BIOS:
  2. $ dmidecode -t bios
  3. # dmidecode 3.2
  4. # SMBIOS entry point at 0x68e3b000
  5. Found SMBIOS entry point in EFI, reading table from /dev/mem.
  6. SMBIOS 3.2 present.
  7. Handle 0x0000, DMI type 0, 26 bytes
  8. BIOS Information
  9. Vendor: Dell Inc.
  10. Version: 2.7.7
  11. Release Date: 05/04/2020
  12. Address: 0xF0000
  13. Runtime Size: 64 kB
  14. ROM Size: 32 MB
  15. ......
  1. 内核版本:
  2. $ uname -a
  3. Linux irecog 4.15.0-129-generic #132~16.04.1-Ubuntu SMP Wed Dec 16 06:46:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  4. $ cat /proc/version
  5. Linux version 4.15.0-129-generic (buildd@lcy01-amd64-028) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)) #132~16.04.1-Ubuntu SMP Wed Dec 16 06:46:04 UTC 2020
  1. 系统版本:
  2. # 适用于所有 linux 发行版
  3. $ cat /etc/issue
  4. Ubuntu 16.04.3 LTS \n \l
  5. # 适用于 redhat 系的 linux
  6. $ cat /etc/redhat-release
  7. CentOS Linux release 7.2.1511 (Core)
  8. # 适用于所有 linux 发行版
  9. $ lsb_release -a
  10. No LSB modules are available.
  11. Distributor ID: Ubuntu
  12. Description: Ubuntu 16.04.3 LTS
  13. Release: 16.04
  14. Codename: xenial

Linux查看系统硬件信息(2021.06.22) - Hit不死的小强 - 博客园

显卡驱动卸载:

进入驱动文件目录(runfile安装):sudo ./NVIDIA-Linux-x86_64-470.74.run --uninstall
清除NVIDIA和配置文件(ppa源安装):sudo apt-get purge --remove nvidia*

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/129358
推荐阅读
相关标签
  

闽ICP备14008679号