Linux/Show Hardware: Difference between revisions
< Linux
(→hwinfo) |
(→lshw) |
||
Line 9: | Line 9: | ||
lshw | lshw | ||
lshw -short | lshw -short | ||
Revision as of 21:06, 3 February 2025
Show Hardware Overview
hwinfo
hwinfo hwinfo --short
lshw
lshw lshw -short
lscpu
lscpu
inxi
inxi -Fxz
dmidecode
dmidecode
Show Hardware
Show CPU
lscpu lshw -C cpu lshw -C cpu | grep -i product lscpu | grep -i mhz lscpu | grep -i bogo
# cpu usage top htop vmstat 2
Show Memory
dmidecode -t memory | grep -i size lshw -short -C memory
# max can install dmidecode -t memory | grep -i max
# show empty slots lshw -short -C memory | grep -i empty
# free memory free -m
# memory usage top htop vmstat 2
Show Motherboard
dmidecode dmidecode -t bios
Show Network Adapter
lshw -C network
ifconfig -a ip a # or: ip addr
ip link show netstat -i
# route tables ip route | column -t netstat -r
Show Disks
lshw -short -C disk hdparm -i /dev/sda fdisk -l
Show Partitions and File Systems
df -h dh -m lsblk blkid
fdisk -l
Show USB Devices
lsusb
Show PCI Devices
lspci
Show OS Version
uname -a cat /etc/os-release
References
- Linux commands to display your hardware information | Opensource.com - https://opensource.com/article/19/9/linux-commands-hardware-information