进入root
sudo -i
查找文件
locate+文件名
或者
find / -name 文件名
查看显卡型号
lspci | grep -i vga
03:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. Integrated Matrox G200eW3 Graphics Controller (rev 04)
获取显卡驱动信息
lspci -vnn | grep VGA -A 12
03:00.0 VGA compatible controller [0300]: Matrox Electronics Systems Ltd. Integrated Matrox G200eW3 Graphics Controller [102b:0536] (rev 04) (prog-if 00 [VGA controller])
DeviceName: Embedded Video
Subsystem: Dell Integrated Matrox G200eW3 Graphics Controller [1028:07e5]
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16, NUMA node 0
Memory at 91000000 (32-bit, prefetchable) [size=16M]
Memory at 92808000 (32-bit, non-prefetchable) [size=16K]
Memory at 92000000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [dc] Power Management version 3
Kernel driver in use: mgag200
Kernel modules: mgag20017:00.0 PCI bridge [0604]: Intel Corporation Sky Lake-E PCI Express Root Port A [8086:2030] (rev 07) (prog-if 00 [Normal decode])
102b:厂商ID
0536:PCI ID
查看当前的显卡驱动
sudo lshw -c video | grep configuration
configuration: depth=32 driver=mgag200 latency=64 maxlatency=32 mingnt=16 resolution=1680,1050
driver=mgag200
检查显卡驱动详情
modinfo mgag200
filename: /lib/modules/5.19.0-35-generic/kernel/drivers/gpu/drm/mgag200/mgag200.ko
license: GPL
description: MGA G200 SE
author: Matthew Garrett
srcversion: E1C44D59D90275CDB767736
alias: pci:v0000102Bd00000538sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000536sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000534sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000533sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000532sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000530sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000524sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000522sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000521sv*sd*bc*sc*i*
alias: pci:v0000102Bd00000520sv*sd*bc*sc*i*
depends: drm,drm_kms_helper,drm_shmem_helper,i2c-algo-bit
retpoline: Y
intree: Y
name: mgag200
vermagic: 5.19.0-35-generic SMP preempt mod_unload modversions
sig_id: PKCS#7
signer: Build time autogenerated kernel key
sig_key: 01:09:A5:EC:BE:BE:8A:C4:62:3F:F4:D3:3A:9C:1B:2C:2C:A1:1A:F2
sig_hashalgo: sha512
signature: 3A:18:41:95:A2:FA:04:58:44:A0:0B:B3:1F:EB:38:5F:B8:35:CB:2B:
78:F7:CC:96:E2:5F:23:CB:E5:F2:FA:A7:35:5B:3D:CC:F2:08:86:7A:
5E:2A:13:62:5F:7F:74:76:86:F6:DF:67:11:42:97:AB:EF:64:7E:0A:
B3:4A:CE:DF:96:D7:C8:6D:5A:86:F6:76:CB:62:D3:13:B9:CF:A6:7D:
A9:4A:42:3E:49:5E:D1:23:07:27:B2:B7:B1:36:A4:30:56:05:E1:8C:
CA:79:91:FF:77:1D:2A:EA:B2:72:BC:FB:24:26:02:79:F0:6D:17:B4:
36:66:F5:6D:12:B3:E9:B5:0A:D6:55:5A:90:15:4F:DF:B8:9A:E9:D0:
1A:26:26:69:F5:6A:63:5B:DB:3C:68:E5:6C:14:AA:25:87:80:A6:C7:
B1:F2:DA:4E:89:0B:09:6E:5C:42:4F:17:93:A3:AD:39:8F:73:01:83:
15:26:B6:CD:70:9E:E7:FF:AC:05:7D:FA:3C:20:20:41:DE:5C:75:85:
7B:70:53:A0:16:2D:B1:88:6B:E6:C9:79:F0:7D:68:5F:7D:11:07:04:
6C:EB:29:DE:69:DD:FA:67:56:30:39:C7:BA:9B:A1:54:10:CD:55:ED:
89:20:1A:DB:02:6E:C1:32:2E:47:78:9A:96:56:F3:7B:5D:59:49:21:
AC:AD:2B:73:E3:FC:6D:79:45:CF:34:59:50:DC:8C:EF:FD:88:C4:DC:
66:22:DA:2E:4F:DB:67:54:AB:69:F9:65:69:EE:75:E5:CA:7D:47:E7:
54:77:E5:13:31:4E:4D:D6:1F:59:9D:42:70:66:E4:65:72:EC:32:32:
33:4B:B8:D4:A7:4D:87:CF:77:A0:77:AC:93:F1:6B:68:A9:64:56:9B:
5A:33:4F:97:F6:E7:C4:5E:71:8F:DD:7A:DA:AF:C8:75:91:B1:FB:E5:
8B:CC:FD:74:19:BE:22:D3:8C:BB:3A:C7:68:CA:EB:CF:7B:2B:0B:06:
09:6C:4D:04:46:6B:28:D4:1A:95:AC:DB:3F:C6:2F:42:A2:C4:37:82:
B7:79:86:46:F5:84:28:99:08:37:BF:1B:33:09:A5:81:F3:1E:EB:D7:
A1:E6:82:23:D5:F6:50:9D:A0:54:4B:19:7C:D8:E8:C4:58:8B:F3:E4:
89:24:AD:01:D5:DC:79:20:76:26:4B:A0:C4:3C:A7:A2:FD:34:A6:F4:
F8:CC:7C:C3:03:A4:D2:64:31:66:27:90:AA:D0:26:3F:14:50:D5:11:
52:FA:97:FA:02:84:A2:63:91:09:92:B9:C4:44:FF:CC:67:A8:DC:F0:
5F:E9:E4:5B:0E:DC:DF:A6:9E:4E:E0:D2
parm: modeset:Disable/Enable modesetting (int)
OpenGL信息
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 15.0.6, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.2.5
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.2.5
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.2.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions
cpu型号
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
8 Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
每个cpu核数
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
cpu cores :2
物理cpu个数
cat /proc/cpuinfo| grep "processor"| wc -l
8
整体cpu相关信息
lscpu
架构: x86_64
CPU 运行模式: 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
字节序: Little Endian
CPU: 8
在线 CPU 列表: 0-7
厂商 ID: GenuineIntel
型号名称: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
CPU 系列: 6
型号: 85
每个核的线程数: 2
每个座的核数: 2 #每个cpu核数
座: 2 #物理cpu个数
步进: 7
BogoMIPS: 4400.00Virtualization features:
虚拟化: VT-x
Caches (sum of all):
L1d: 128 KiB (4 instances)
L1i: 128 KiB (4 instances)
L2: 4 MiB (4 instances)
L3: 27.5 MiB (2 instances)
NUMA:
NUMA 节点: 2
NUMA 节点0 CPU: 0,2,4,6
NUMA 节点1 CPU: 1,3,5,7
Vulnerabilities:
Itlb multihit: KVM: Mitigation: VMX disabled
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Mitigation; Clear CPU buffers; SMT vulnerable
Retbleed: Mitigation; Enhanced IBRS
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer
sanitization
Spectre v2: Mitigation; Enhanced IBRS, IBPB conditional, RSB fillin
g, PBRSB-eIBRS SW sequence
Srbds: Not affected
Tsx async abort: Mitigation; TSX disabled
查看内存使用情况
free -h
total used free shared buff/cache available
内存: 125Gi 3.6Gi 10Gi 136Mi 111Gi 120Gi
交换: 2.0Gi 2.0Mi 2.0Gi
查询RAM信息
dmidecode -t 16
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.Handle 0x1000, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 3 TB
Error Information Handle: Not Provided
Number Of Devices: 24
查询可用内存大小
grep MemTotal /proc/meminfo
MemTotal: 131463852 kB
内存插槽和内存
dmidecode|grep -P -A5 "Memory Device" |grep Size
Size: 32 GB
Size: 32 GB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: 32 GB
Size: 32 GB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
内存速率
dmidecode|grep -A16 "Memory Device"|grep 'Speed' | grep -v "Unknown"
Speed: 2666 MT/s
Speed: 2666 MT/s
Speed: 2666 MT/s
Speed: 2666 MT/s
挂载分区状态
fdisk -l |grep Disk
Disk /dev/loop0:4 KiB,4096 字节,8 个扇区
Disk /dev/loop1:349.69 MiB,366673920 字节,716160 个扇区
Disk /dev/loop2:460.39 MiB,482750464 字节,942872 个扇区
Disk /dev/loop3:346.33 MiB,363151360 字节,709280 个扇区
Disk /dev/loop4:91.69 MiB,96141312 字节,187776 个扇区
Disk /dev/loop5:45.93 MiB,48160768 字节,94064 个扇区
Disk /dev/loop7:304 KiB,311296 字节,608 个扇区
Disk /dev/sdc:147.84 GiB,158739176448 字节,310037454 个扇区
Disk model: Hitachi HDS72161
Disk /dev/sda:7.28 TiB,8001563222016 字节,15628053168 个扇区
Disk model: ST8000NM012A-2KE
Disk /dev/sdb:7.28 TiB,8001563222016 字节,15628053168 个扇区
Disk model: ST8000NM012A-2KE
Disk /dev/mapper/ubuntu--vg-ubuntu--lv:73.17 GiB,78563508224 字节,153444352 个扇区
Disk /dev/mapper/ubuntu--vg-lv--0:50 GiB,53687091200 字节,104857600 个扇区
Disk /dev/loop8:49.84 MiB,52260864 字节,102072 个扇区
Disk /dev/loop9:164.82 MiB,172830720 字节,337560 个扇区
Disk /dev/loop10:130.76 MiB,137109504 字节,267792 个扇区
Disk /dev/loop11:53.24 MiB,55824384 字节,109032 个扇区
Disk /dev/loop12:63.29 MiB,66359296 字节,129608 个扇区
Disk /dev/loop13:239.81 MiB,251461632 字节,491136 个扇区
Disk /dev/loop14:239.88 MiB,251527168 字节,491264 个扇区
Disk /dev/loop15:55.61 MiB,58310656 字节,113888 个扇区
Disk /dev/loop16:63.32 MiB,66392064 字节,129672 个扇区
Disk /dev/loop17:603.36 MiB,632664064 字节,1235672 个扇区
Disk /dev/loop18:72.98 MiB,76521472 字节,149456 个扇区
Disk /dev/loop19:428 KiB,438272 字节,856 个扇区
Disk /dev/loop21:55.61 MiB,58314752 字节,113896 个扇区
Disk /dev/loop22:605.45 MiB,634863616 字节,1239968 个扇区
Disk /dev/loop23:72.99 MiB,76537856 字节,149488 个扇区
Disk /dev/loop24:460.57 MiB,482947072 字节,943256 个扇区
Disk /dev/loop25:164.82 MiB,172830720 字节,337560 个扇区
Disk /dev/loop26:349.69 MiB,366678016 字节,716168 个扇区
硬盘和分区的分布
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 7.3T 0 disk
├─sda1
│ 8:1 0 976M 0 part /boot/efi
├─sda2
│ 8:2 0 977M 0 part
├─sda3
│ 8:3 0 30.5G 0 part
├─sda4
│ 8:4 0 1.9T 0 part /media/joanna/3c570a7f-574a-4b3d-8694-3636e30d42e8
├─sda5
│ 8:5 0 5T 0 part
└─sda6
8:6 0 336.8G 0 part /var/snap/firefox/common/host-hunspell
/
sdb 8:16 0 7.3T 0 disk
sdc 8:32 0 147.8G 0 disk
├─sdc1
│ 8:33 0 512M 0 part
├─sdc2
│ 8:34 0 1G 0 part /media/joanna/42462b7e-7fd2-4adb-8261-1de1a2e74a6b
└─sdc3
8:35 0 146.3G 0 part
├─ubuntu--vg-ubuntu--lv
│ 253:0 0 73.2G 0 lvm
└─ubuntu--vg-lv--0
253:1 0 50G 0 lvm /media/joanna/173d3a16-5b06-4abe-be25-b4820e4f4e3f
sr0 11:0 1 1024M 0 rom
硬盘和分区的详细信息
fdisk -l
Disk /dev/sdc:147.84 GiB,158739176448 字节,310037454 个扇区
Disk model: Hitachi HDS72161
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:gpt
磁盘标识符:CFCA8CA3-53CB-47F2-94B9-C24886C9B7E7设备 起点 末尾 扇区 大小 类型
/dev/sdc1 2048 1050623 1048576 512M EFI 系统
/dev/sdc2 1050624 3147775 2097152 1G Linux 文件系统
/dev/sdc3 3147776 310034431 306886656 146.3G Linux 文件系统
Disk /dev/sda:7.28 TiB,8001563222016 字节,15628053168 个扇区
Disk model: ST8000NM012A-2KE
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 4096 字节
I/O 大小(最小/最佳):4096 字节 / 4096 字节
磁盘标签类型:gpt
磁盘标识符:A94996F7-7DF7-4E1D-BCFD-DE4C5C1F3057设备 起点 末尾 扇区 大小 类型
/dev/sda1 2048 2000895 1998848 976M EFI 系统
/dev/sda2 2000896 4001791 2000896 977M Linux 文件系统
/dev/sda3 4001792 68001791 64000000 30.5G Linux swap
/dev/sda4 68001792 4164001791 4096000000 1.9T Linux 文件系统
/dev/sda5 4164001792 14921666815 10757665024 5T Linux 文件系统
/dev/sda6 14921668608 15628052479 706383872 336.8G Linux 文件系统
Disk /dev/sdb:7.28 TiB,8001563222016 字节,15628053168 个扇区
Disk model: ST8000NM012A-2KE
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 4096 字节
I/O 大小(最小/最佳):4096 字节 / 4096 字节
硬盘的使用情况
df -hT
文件系统 类型 大小 已用 可用 已用% 挂载点
tmpfs tmpfs 13G 2.7M 13G 1% /run
/dev/sda6 ext4 331G 137G 177G 44% /
tmpfs tmpfs 63G 0 63G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda1 vfat 975M 6.1M 968M 1% /boot/efi
/dev/sdc2 ext4 974M 669M 239M 74% /media/joanna/42462b7e-7fd2-4adb-8261-1de1a2e74a6b
/dev/mapper/ubuntu--vg-lv--0 ext4 49G 717M 46G 2% /media/joanna/173d3a16-5b06-4abe-be25-b4820e4f4e3f
/dev/sda4 ext4 1.9T 4.0G 1.8T 1% /media/joanna/3c570a7f-574a-4b3d-8694-3636e30d42e8
tmpfs tmpfs 13G 124K 13G 1% /run/user/1000
服务器型号序列号
dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product|Serial"
Manufacturer: Dell Inc.
Product Name: PowerEdge T640
Serial Number: GV5QJ23
主板型号
dmidecode |grep -A16 "System Information$"
System Information
Manufacturer: Dell Inc.
Product Name: PowerEdge T640
Version: Not Specified
Serial Number: GV5QJ23
UUID: 4c4c4544-0056-3510-8051-c7c04f4a3233
Wake-up Type: Power Switch
SKU Number: SKU=NotProvided;ModelName=PowerEdge T640
Family: PowerEdgeHandle 0x0200, DMI type 2, 8 bytes
Base Board Information
Manufacturer: Dell Inc.
Product Name: 04WYPY
Version: A02
Serial Number: .GV5QJ23.CNIVC009BU0278.
查看BIOS信息
dmidecode -t bios
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
Vendor: Dell Inc.
Version: 2.4.8
Release Date: 11/27/2019
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 32 MB
Characteristics:
ISA is supported
PCI is supported
PNP is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
EDD is supported
Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
5.25"/360 kB floppy services are supported (int 13h)
5.25"/1.2 MB floppy services are supported (int 13h)
3.5"/720 kB floppy services are supported (int 13h)
8042 keyboard services are supported (int 9h)
Serial services are supported (int 14h)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Function key-initiated network boot is supported
Targeted content distribution is supported
UEFI is supported
BIOS Revision: 2.4Handle 0x0D00, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Long
Installable Languages: 1
en|US|iso8859-1
Currently Installed Language: en|US|iso8859-1
参考文献:exp: Linux中如何查看显卡硬件信息(lshw/modinfo/glxinfo/OpenGL)_海阔天空!的博客-CSDN博客