Bash Scripting Cheat Sheet
Write safer Bash scripts with arguments, quoting, arrays, conditions, functions, option parsing, temporary files, traps, and static checks.
Open cheat sheetLinux · 7 guides
Work efficiently with shells, files, text, archives, backups, and schedules.
Focused references
Each guide includes copy-ready syntax, detailed examples, and authoritative references.
Write safer Bash scripts with arguments, quoting, arrays, conditions, functions, option parsing, temporary files, traps, and static checks.
Open cheat sheetSchedule, validate, inspect, and troubleshoot recurring cron jobs, one-time at jobs, and catch-up anacron jobs safely on Linux.
Open cheat sheetCreate, inspect, extract, and verify tar archives and gzip or xz streams safely, with explicit destinations, exclusions, ownership controls, and checksums.
Open cheat sheetInspect, set, export, scope, persist, and debug Linux environment variables, PATH, locale, shell startup files, and systemd service environments.
Open cheat sheetNavigate, inspect, create, copy, move, search, and safely remove Linux files and directories from the shell.
Open cheat sheetFilter, transform, extract, sort, count, and summarize text safely with grep, sed, awk, cut, sort, uniq, tr, and wc.
Open cheat sheetSynchronize files and build recoverable rsync backups with dry runs, safe deletion, SSH transport, hard-linked snapshots, verification, and restore testing.
Open cheat sheet