Linux/Show Hardware

From Omnia
Jump to navigation Jump to search

Show Hardware Overview

hwinfo

hwinfo
hwinfo --short

lshw

lshw
lshw -short

lscpu

lscpu

inxi

inxi
inxi -F  # full output
inxi -Fxz  # -F full output, -x extra data, -z with filtering persoanl identifying information (eg. MAC/IP)
inxi -h  # help

Install with:

sudo apt install inxi

dmidecode

dmidecode

Show Hardware

Show CPU

lscpu
lshw -C cpu
lshw -C cpu | grep -i product
grep "model name" /proc/cpuinfo
lscpu | grep -i mhz
lscpu | grep -i bogo
# cpu usage
top
htop
vmstat 2

Show Memory

# total installed RAM
dmidecode -t memory | grep -i size
lshw -short -C memory
grep MemTotal /proc/meminfo
# 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 Video Adapter

lspci | grep -i vga
# show video ram
lspci -v -s 00:02.0

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
cat /proc/partitions

Show USB Devices

lsusb

Show PCI Devices

lspci

Show OS Version

uname -a
cat /etc/os-release
head -n1 /etc/issue

References

keywords