Skip to main content

Profile

dmesg

dmesg -T | tail

Journal

Entries

journalctl -n 50

Reverse

journalctl -r

Watch

journalctl -n 10 --follow

Boot

last -x shutdown reboot

journalctl -b
journalctl -b -1
journalctl --list-boots
# Last 50 logs from last boot
journalctl -n 50 -b -1

Unit

journalctl -u <service-name>

User

journalctl -xe --user -u <service-name>

Kernel

journalctl -k -b -0 --no-pager | rg -i "mce|hardware error|reset reason"
journalctl _TRANSPORT=kernel --since "2026-02-25" --no-pager | rg -i "mce|hardware error|reset reason"

Level

journalctl -p 3

Error

journalctl -p 3 -xb
journalctl -p 3 -x -b -1

Core Dump

coredumpctl list
coredumpctl info <PID>

perf

perf cookbook

perf list # events
perf stat <command>
perf stat -e <events> <command>
perf record -e <events> -a <command>
perf report
perf record -F 99 -a -g -- sleep 10

perf report -n --stdio
perf report -n -g 'flamegraph'

Stress

sudo pacman -S s-tui

Toolchain

Linux Performance Toolchain

Performance analysis in 60,000 milliseconds from Netflix blog:

# Load average
uptime

# Kernel errors
dmesg -T | tail

# Overall stats by time
vmstat 1

# CPU balance
mpstat -P ALL 1

# Process usage
pidstat 1

# Disk I/O
iostat -xz 1

# Memory usage
free -m

# Network I/O
sar -n DEV 1

# TCP stats
sar -n TCP,ETCP 1

# Check overview
top