Linux/Show Hardware: Difference between revisions

From Omnia
Jump to navigation Jump to search
Line 75: Line 75:
  ip route | column -t
  ip route | column -t
  netstat -r
  netstat -r
=== Show Video Adapter ===
lspci | grep -i vga
# show video ram
lspci -v -s 00:02.0


=== Show Disks ===
=== Show Disks ===

Revision as of 21:07, 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 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

Show USB Devices

lsusb

Show PCI Devices

lspci

Show OS Version

uname -a
cat /etc/os-release

References