Be it Nvidia or Radeon or Intel, they may all have some issues with Linux. When you are on your way to the graphics problem, the first thing you need to know is which graphics card you have in your system.

Linux has several commands to check hardware information. What graphics card (also refer to video card) do you have. Let me show you a couple of commands to get GPU information in Linux.

Check graphics card in Linux command line
Use lspci command to find graphics card
The lspci command displays the information about devices connected via PCI (Peripheral Component Interconnect) buses. Basically, this command gives you access to all the peripheral devices from your system to the keyboard and mouse to sound, network and graphics cards.

By default, you have a huge list of such peripheral devices. This is why you need the filter card to output the graphics card with the grep command:

lspci | grep VGA
Your graphics card:

As you can see, my system has an Intel HD 620 video card.

Get detailed graphics card information in the lshw command in Linux
The lspci command is good enough to see what graphics card you have but it doesn’t tell you a lot. You can use lshw command to get more information.

You may have to install Lshw on Fedora, Manjaro and a few non-Ubuntu distributions.

This command requires you to have root access. Video card (graphics card) information in this fashion:

And as you can see in the output below, this command gives you more information on the graphics card such as clock rate, width, driver, etc.

Bonus Tip: Check graphics card details graphically
Find the graphics card in Linux. Most Linux distributions (or should I say desktop environments) provide essential information in the settings application.

For example, if you are using the GNOME desktop environment, you can check out the section about Settings. Here’s what it looks like in Ubuntu 20.04:

Ubuntu GPU Check
Graphics card information check graphically
I hope you find this quick tip helpful. You can also use the same commands to find your network adapter and CPU information in Linux.

Leave a Comment