在Linux系统下,可以通过以下几种方法查看显卡型号:
一、lspci命令
lspci
是用于显示系统中PCI总线设备的命令。显卡作为一种PCI设备,可以通过这个命令来获取相关信息。lspci | grep -i vga
,其中grep -i vga
用于过滤出包含“vga”(Video Graphics Array,视频图形阵列,是一种常见的显卡相关标识)的行,-i
选项表示忽略大小写。例如,可能会得到类似00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
这样的输出,其中“Intel Corporation UHD Graphics 620”就是显卡型号。lspci -v | grep -A 10 -i vga
,-v
表示详细模式,-A 10
表示在匹配行之后显示10行内容,这样可以获取更多关于显卡的配置等信息。二、lshw命令
lshw
(list hardware)是一个列出系统硬件信息的工具。sudo lshw -class display
(需要使用sudo
获取管理员权限),会得到类似以下的信息: *-display
description: VGA compatible controller
product: UHD Graphics 620
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 07
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:128 memory:c0000000 - c0ffffff memory:d0000000 - dfffffff ioport:f000(size = 64)
其中“product: UHD Graphics 620”就是显卡型号。
三、hwinfo命令(部分发行版可能需要安装)
hwinfo
是一个用于获取硬件信息的工具,它可以提供详细的硬件设备信息,包括显卡。hwinfo
,在终端输入hwinfo --gfxcard
,会得到类似这样的输出: Graphics Card 0:
Model: Intel(R) UHD Graphics 620
Vendor: Intel Corporation
Device: 0x5916
SubVendor: ASUSTeK Computer Inc.
SubDevice: 0x0000
Revision: 0x7
Memory: 32 MB - 32 MB
Driver: i915
其中“Model: Intel(R) UHD Graphics 620”就是显卡型号。
领取专属 10元无门槛券
手把手带您无忧上云