Linux/Show Hardware: Difference between revisions

From Omnia
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 9: Line 9:


  lshw
  lshw
lshw --short
  lshw -short
  lshw -short


Line 18: Line 17:
=== inxi ===
=== inxi ===


  inxi -Fxz
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 ===
Line 31: Line 37:
  lshw -C cpu
  lshw -C cpu
  lshw -C cpu | grep -i product
  lshw -C cpu | grep -i product
grep "model name" /proc/cpuinfo
  lscpu | grep -i mhz
  lscpu | grep -i mhz
  lscpu | grep -i bogo
  lscpu | grep -i bogo
Line 41: Line 49:
=== Show Memory ===
=== Show Memory ===


# total installed RAM
  dmidecode -t memory | grep -i size
  dmidecode -t memory | grep -i size
  lshw -short -C memory
  lshw -short -C memory
grep MemTotal /proc/meminfo


  # max can install
  # max can install
Line 76: Line 86:
  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 ===
Line 91: Line 108:


  fdisk -l
  fdisk -l
cat /proc/partitions


=== Show USB Devices ===
=== Show USB Devices ===
Line 104: Line 123:
  uname -a
  uname -a
  cat /etc/os-release
  cat /etc/os-release
head -n1 /etc/issue


== References ==
== References ==


* Linux commands to display your hardware information | Opensource.com - https://opensource.com/article/19/9/linux-commands-hardware-information
* Linux commands to display your hardware information | Opensource.com - https://opensource.com/article/19/9/linux-commands-hardware-information
* What is the Linux command to find out hardware info? - Super User - https://superuser.com/questions/303981/what-is-the-linux-command-to-find-out-hardware-info
== keywords ==

Latest revision as of 21:13, 3 February 2025

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