Pages

Topics

Tools

↑↓navigate↵openescclose

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

Latest Linux guides

3D illustration of a RAM bar overflowing into a swap cylinder with a memory pressure gauge and OOM marker
Linux

Linux 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.

LinuxPerformanceKernelSysAdmin
3D illustration of JSON and YAML documents flowing through a filter funnel into clean output blocks
Linux

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.

LinuxCLIJSONAutomation
3D illustration of indexed array slots and key-value map tiles expanded by parameter substitution braces
Linux

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.

LinuxBashShellScripting
3D illustration of a process box linked by file descriptors to open files, syscall traces and a kernel log panel
Linux

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.

LinuxDebuggingProcesses
3D illustration of a firewall wall with layered rule filters catching packets at a network gate
Linux

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.

LinuxNetworkingSecuritySysAdmin
3D illustration of user and group badges passing a layered PAM authentication gate to a sudo privilege lock
Linux

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.

LinuxSecuritySysAdmin
3D illustration of inode cubes shared by two directory names beside a symbolic link chip pointing at a file
Linux

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.

LinuxFile SystemCLI
3D illustration of two servers linked by an encrypted SSH tunnel carrying incremental delta blocks
Linux

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.

LinuxSSHBackupNetworking
3D illustration of exported environment blocks flowing from a shell into child processes along a PATH search chain
Linux

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.

LinuxShellBashEnvironment
3D illustration of a tar archive box feeding gzip, xz and zstd compression cylinders in a streaming pipeline
Linux

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.

LinuxCLIBackupCompression