Hello, I need some help.
I want to display GPU name. I tried with inxi -gx and grep but its showing gpu name with kernel, driver etc. I need only gpu name.
Secondly, I want to display mounted hard drives size (sata, nvme) but only real size in GB, I mean 128, 256. Any help?
Display gpu name, hard drive size etc
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
Display gpu name, hard drive size etc
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Display gpu name, hard drive size etc
lsblk -o NAME,SIZE
will give you the disk/partition sizes.inxi -G
works for the GPU.Re: Display gpu name, hard drive size etc
Yes, I know this commands but need command which will show exactly ONLY gpu name (NVIDIA RTX 3080 etc) and drives in GB, like 256, 512 etc
Re: Display gpu name, hard drive size etc
Well, this command is closer (I think):
Code: Select all
$ nvidia-smi -L
GPU 0: GeForce GTX 1070 (UUID: GPU-1f3d5e07-70af-abf8-84d3-4a0b2c6cbe6f)
Re: Display gpu name, hard drive size etc
I should have done some more investigating. The following works with any Nvidia card:
Similarly, you can get the driver version this way as well:
If you'd like, you can run these commands together, like this:
Code: Select all
$ nvidia-smi --query-gpu=name --format=csv,noheader
GeForce GTX 1070
Code: Select all
$ nvidia-smi --query-gpu=driver_version --format=csv,noheader
460.91.03
Code: Select all
$ nvidia-smi --query-gpu=name,driver_version --format=csv,noheader
GeForce GTX 1070, 460.91.03
- BJZilberman
- Level 2
- Posts: 55
- Joined: Mon Jul 26, 2021 7:37 am
- Location: Holon, Israel
- Contact:
Re: Display gpu name, hard drive size etc
You can view the drives using parted (there are many other options aswell, not mint-specific).
Code: Select all
sudo parted -l
Re: Display gpu name, hard drive size etc
Code: Select all
andy@T432 ~ $ inxi -G | grep Graphics\ driver | cut -f3 -d:
i915 v
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0