Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check the details of the video card in the Linux command line

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to check the details of the graphics card in the Linux command line". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Check the video card details in the Linux command line

Use the lspci command to find the video card

The lspci command displays information about devices connected through the PCI (Peripheral component Interconnect Peripheral Component Interconnect) bus. Basically, this command provides detailed information about all peripherals of the system, from the keyboard and mouse to sound cards, network cards, and video cards.

By default, you will have a large list of such peripherals. This is why you need to filter out the video card with the grep command:

Lspci | grep VGA

This should display a line of information about your video card:

Abhishek@itsfoss:~$ lspci | grep VGA 00VGA compatible controller 02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)

As you can see, I have an Intel HD 620graphics card in my system.

Use the lshw command in Linux to get the video card details

The lspci command is enough to view your graphics card, but it doesn't tell you much. You can use the lshw command to get more information about it.

This command requires you to have root privileges. You need to find video card (video card) information in this way:

Sudo lshw-C video

As you can see in the output below, this command provides more information about the graphics card, such as clock frequency, bit width, driver, and so on.

Abhishek@itsfoss:~$ sudo lshw-C video [sudo] password for abhishek: *-display description: VGA compatible controller product: HD Graphics 620 vendor: Intel Corporation physical id: 2 bus info: [email protected]: 00 email protected 02.0 version: 02 width: 64 bits clock: 33MHz capabilities: pciexpress msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq: 139 memory:db000000-dbffffff memory:90000000-9fffffff ioport:f000 (size=64) memory:c0000-dffff bonus Tips: check graphics card details graphically

It is not necessary to use the command line to find video card details in Linux. Most Linux distributions (or rather desktop environments) provide the necessary details in the settings.

For example, if you are using a GNOME desktop environment, you can go to the about section of Settings to check the details. Ubuntu 20.04 looks like this:

This is the end of the content of "how to check the details of the graphics card on the Linux command line". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report