Posted: . At: 2:04 PM. This was 5 years ago. Post ID: 12878
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



Get GPU information from your Nvidia card on Linux very easily.


If the user of an Ubuntu or Linux Mint machine has an Nvidia card, and the proprietary drivers are installed, then it is very easy to get information about their graphics card from the terminal.

This simple one-liner will use awk to print the 4th 5th and 6th column of text in the output from grep. This allows the user to only return the exact information that is needed.

4.4 Tue Jan 22 jason@Yog-Sothoth 0: $ nvidia-settings -g | grep "renderer string:" | awk '{print $4,$5,$6}'
GeForce GTX 1050/PCIe/SSE2

Get the drivers version string this way.

4.4 Tue Jan 22 jason@Yog-Sothoth 0: $ nvidia-settings -g | grep "OpenGL version string:" | awk '{print $4,$5,$6}'
4.6.0 NVIDIA 390.77

This is a very useful way to get information about your Nvidia graphics card.

Some more very useful ways here.

https://securitronlinux.com/bejiitaswrath/how-to-get-the-brand-and-model-of-your-graphics-card-with-the-command-line/.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.