System Information

Commands for gathering detailed system information about hardware, network, storage, and running processes

Basic System Information

uname -a

  • Complete system information
  • Kernel, hostname, architecture

hostnamectl

  • System hostname and details
  • OS version, kernel info

lsb_release -a

  • Distribution-specific information
  • Debian version and codename

Hardware Information

lscpu

  • CPU architecture and features
  • Cores, threads, cache info

lshw -short

  • Hardware overview summary
  • All system components

lsblk

  • Block device tree view
  • Disks, partitions, mount points

free -h

  • Memory usage in human format
  • RAM and swap information

Network Information

ip addr show

  • Network interface details
  • IP addresses and status

ip route show

  • Routing table information
  • Default gateway and routes

Process and Service Info

systemctl status

  • System and service manager state
  • Failed units and boot time

ps aux

  • Running process information
  • CPU and memory usage

Storage Information

df -h

  • Filesystem disk usage
  • Available space per mount

fdisk -l

  • Partition table information
  • Disk geometry details

Example System Check

1
2
3
4
5
6
7
8
echo "=== System Overview ==="
hostnamectl
echo "=== CPU Info ==="
lscpu | head -10
echo "=== Memory ==="
free -h
echo "=== Disk Usage ==="
df -h