Skip to main content

Linux System Information Commands - Complete Reference

Here’s a comprehensive list of command-line tools to gather system information like RAM, CPU, storage, devices, etc., on a Linux machine:


🧠 CPU Information
#

CommandDescription
lscpuDisplays CPU architecture details (cores, threads, model, etc.)
cat /proc/cpuinfoRaw CPU information (model, vendor, MHz, etc.)
nprocShows number of processing units (cores) available
top or htopReal-time CPU usage (use htop for a better UI)

💾 RAM Information
#

CommandDescription
free -hShows free, used, and total memory (human-readable)
cat /proc/meminfoDetailed memory information
vmstatMemory, swap, I/O, and CPU usage
top or htopReal-time RAM usage

💽 Disk and Partition Info
#

CommandDescription
df -hShows disk space usage per mount point
lsblkLists block devices (drives, partitions)
fdisk -lLists disk partitions (requires sudo)
du -sh /pathShows disk usage of a folder
mountLists all mounted file systems

🖥️ GPU Information
#

CommandDescription
`lspcigrep -i vga`Lists GPU info (vendor, model)
`glxinfogrep “OpenGL”`OpenGL version and renderer (requires mesa-utils)
nvidia-smiFor NVIDIA GPUs (requires NVIDIA drivers)

📡 Network Information
#

CommandDescription
ip aShows IP addresses and network interfaces
ip linkNetwork interfaces and status
ifconfig(Old) Shows interfaces and IPs (install net-tools)
ss -tulnListening ports and connections
nmcliNetworkManager CLI tool
ping, traceroute, dig, nslookupNetworking tools

🔧 System & Hardware Information
#

CommandDescription
uname -aKernel version, architecture
hostnamectlShows hostname, OS, kernel
uptimeShows system uptime
dmesgKernel ring buffer (hardware-related logs)
lsb_release -aDistro info (may need lsb-release package)
neofetch or screenfetchStylish summary of system info
inxi -FxVery detailed system info (install inxi)
lshwLists detailed hardware info (run with sudo)
lsusbLists USB devices
lspciLists PCI devices

🧰 Combined Tools
#

CommandDescription
htopInteractive system monitor (CPU, RAM, processes)
glancesReal-time, multi-resource monitor (CPU, RAM, disk, net)
bpytop / bashtopPretty top-like system monitor

Recommended Combo for Daily Use#

lscpu && free -h && lsblk && df -h && ip a && uname -a

Youcef
Author
Youcef
My name is youcef and i’m linux user who fool in love with linux , like free and open software .