Linux guides
Every published Linux guide, newest first, with practical examples you can copy into your own project.
3,815 guides across 14 topics
Topics
Popular Linux guides
Most readLatest Linux guides
Page 1 of 2Linux Memory, Swap, the OOM Killer, vmstat, and sysctl Tuning
MemAvailable versus used, the vmstat columns that prove thrashing, how the OOM killer picks its victim, and the sysctl keys that belong in /etc/sysctl.d instead of a one-off command.
Parsing JSON and YAML in Shell Pipelines with jq and yq
jq is a filter language, not a pretty-printer. The operators that do the work, --arg versus string interpolation, in-place YAML edits, and how to tell which yq is installed before writing a command.
Bash Indexed Arrays, Associative Maps, and Parameter Expansion
Quoting decides whether an array stays a list, and the expansion operators replace most external text tools. Includes set -u, mapfile, namerefs, and the bash 3.2 differences that break scripts on macOS.
Debugging Linux Processes and Kernel Errors with lsof, strace, and dmesg
Deleted files still holding disk space, syscalls that explain a hang, and the kernel's record of an OOM kill. What each tool answers, what it costs, and the permissions that block it.
Linux Firewalls: ufw, iptables, and nftables Rules and Persistence
First-match ordering, stateful filtering, and persistence: the three ideas behind every Linux firewall. Plus why Docker-published ports ignore ufw and how DOCKER-USER closes them.
Linux Users, Groups, sudoers, and PAM Access Control
The four account files, the sudoers grammar with aliases and drop-ins, and the PAM stack where logins actually succeed or fail. Includes the flags that lock an account without disabling SSH keys.
Symbolic Links vs Hard Links: ln -s, Inodes, stat, and readlink
One inode with two names versus a file containing a path. Link counts, argument order, the -n flag that decides where a link lands, broken links, and the symlink attacks that follow from careless resolution.
rsync, scp, and sftp: Incremental Sync, Delete Flags, and Bandwidth Limits
Why the trailing slash decides whether rsync merges or mirrors, how --delete behaves with filters, safe resume with --partial, and where scp and sftp still beat a delta transfer.
Linux Environment Variables: export, PATH, and Shell Profile Loading Order
The export boundary between shell and environment variables, why PATH order and the command hash cache decide which binary runs, and the exact file order bash reads for login, interactive, and non-interactive shells.
Linux Archiving and Compression: tar, gzip, xz, and zstd Syntax and Trade-offs
tar archives and the compressors only shrink the stream. Argument order, -C path handling, ownership and xattr preservation, streaming over SSH, and which algorithm to pick for size versus speed.