LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

System information

OS & Kernel

Which distribution, which kernel, and how long has it been running?
$ uname -a
copy
$ cat /etc/os-release
copy
Pretty system overviews for screenshots and quick orientation.
$ inxi -Fz
copy

CPU

lscpu summarizes model, cores, and features; /proc/cpuinfo has the raw per-core details.
$ cat /proc/cpuinfo
copy
Current CPU load: top in batch mode for a one-shot value, mpstat for per-core statistics, vmstat for a rolling view.
$ top -bn1 | grep "Cpu(s)"
copy
$ mpstat 1 5
copy
$ vmstat 1
copy

Memory

free -h answers the common question; /proc/meminfo has every detail.
$ free -h
copy
$ cat /proc/meminfo
copy
In free, look at the "available" column, not "free": Linux uses spare RAM for disk cache and releases it when programs need it.

Processes

Snapshot with ps, live view with top or one of its friendlier successors.
$ ps aux
copy
$ ps aux --sort=-%mem | head
copy
$ top
copy

Disks & Partitions

Free space per filesystem, block devices as a tree, and partition tables (root required for fdisk/parted).
$ df -h
copy
$ duf
copy
$ lsblk -f
copy
$ fdisk -l
copy
$ parted -l
copy

Hardware

List devices by bus, or get the full inventory including model numbers.
$ lshw -short
copy
$ dmidecode -t memory
copy
Temperatures and fan speeds (run sensors-detect once first).

Battery

upower reports detailed battery state; acpi gives the one-line answer. The raw values live in /sys.
$ acpi -b
copy
$ upower -i $(upower -e | grep BAT)
copy
$ cat /sys/class/power_supply/BAT*/capacity
copy

Bluetooth

bluetoothctl is the current tool; hciconfig is deprecated but still found on older systems.
$ bluetoothctl show
copy
$ bluetoothctl devices
copy
$ hciconfig -a
copy

Kernel & Boot Messages

dmesg prints the kernel ring buffer (root on most distributions); journalctl -b shows everything logged since this boot.
$ dmesg -w
copy
Copied to clipboard
Kai