Skip to content

Instantly share code, notes, and snippets.

@codedeep79
Created August 31, 2022 08:30
Show Gist options
  • Select an option

  • Save codedeep79/2b1adb8cb13a79683fc1bddb0e58deca to your computer and use it in GitHub Desktop.

Select an option

Save codedeep79/2b1adb8cb13a79683fc1bddb0e58deca to your computer and use it in GitHub Desktop.
Finding Hardware using Linux

CPU Model

grep -i "model name" /proc/cpuinfo

GPU Model

lspci | grep -i --color "vga\|3d\|2d"

Chipset Model

sudo dmidecode | grep -A4 'Base Board Information'

Keyboard, Trackpad and Touchscreen Connection Type

sudo sysctl -w kernel.dmesg_restrict=0
dmesg | grep -i input

Audio Codec

aplay -l

Network Controller models

Basic info:

lspci | grep -i network

More in-depth info:

sudo apt-get install lshw
lshw -class network

Drive Model

lshw -class disk -class storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment