Linux/Show Hardware

From Omnia
Revision as of 21:05, 3 February 2025 by Kenneth (talk | contribs) (Created page with "== Show Hardware Overview == === hwinfo === hwinfo === lshw === lshw lshw --short lshw -short === lscpu === lscpu lshw -C cpu === 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Show Hardware Overview

hwinfo

hwinfo

lshw

lshw
lshw --short
lshw -short

lscpu

lscpu
lshw -C cpu

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