apt, dnf and pacman Commands Compared: Package Manager Cheat Sheet
Side-by-side apt, dnf and pacman commands for searching, installing, removing, updating and inspecting packages, tested on Debian, Fedora and Arch.
Terminal tools, explained with examples we actually ran.
Side-by-side apt, dnf and pacman commands for searching, installing, removing, updating and inspecting packages, tested on Debian, Fedora and Arch.
List block devices with lsblk, read filesystem UUIDs and labels with blkid, and see active mount points with findmnt. Three util-linux commands, explained.
Learn how tmux sessions, windows and panes fit together, and how to detach and reattach so long-running terminal work keeps going after you leave.
Use journalctl to read the systemd journal: filter by unit, priority, boot and time, search messages, follow live logs and check how much disk space they use.
Learn awk by example: pull fields from log lines, filter rows by condition, and total or count columns in logs and simple CSV files with short commands.
Learn how systemctl starts, stops, enables and inspects systemd services, and how to verify each change with is-active, is-enabled and status.
Compare grep and ripgrep for searching text in files: recursive search, case, whole words, context, file filters and ignore rules, with runnable examples.
Learn how rsync copies and mirrors directories, how the trailing slash works, how to preview changes with a dry run, and how to sync to a remote host over SSH.
Use the ip command from iproute2 to list network interfaces, IP addresses, routes and neighbors, and find where ifconfig points you for link details.
Learn how to create, list and extract tar archives with gzip, xz or zstd compression, and verify each step. Every command is tested on four distributions.
Use ss to list listening TCP and UDP ports, see which process owns each socket, and filter established connections by state and port.
Fedora 45 moves its text consoles from the kernel fbcon driver to kmscon. Learn what changes, how to install the packages and how to check your setup.
Find out how full your disks are and which directories use the most space with df, du and ncdu. Every command tested on Debian, Ubuntu, Fedora and Arch.