Resources Library
Cheat sheets, reference guides and useful bits of Linux and Unix knowledge. No gatekeeping. Occasional cryptic commands.
We're building a growing library of Linux and Unix technical references, practical examples and downloadable guides. Some sections are still being developed. Please bear with us!
π Library
π Editors
Text editors and their command languages.
π vi & Vim
Reference guides and cheat sheets for the vi family of editors.
π History of vi β timeline (read online) Full searchable HTML edition: A concise historical reference with key milestones and design influences HTML β π History of vi β timeline (PDF) A concise historical reference with key milestones and design influences PDF β π Normal-mode command reference (read online) Full searchable HTML edition: Commands, motions, operators, text objects and counts HTML β π Normal-mode command reference (PDF) Commands, motions, operators, text objects and counts PDF β π Pocket quick reference (read online) Full searchable HTML edition: Everyday editing patterns and how commands compose HTML β π Pocket quick reference (PDF) Everyday editing patterns and how commands compose PDF β π Vi Vim Command Crib Sheet PDF β π Vim Turorial Slides PPTX βπ Logging
π logrotate
Rotating, compressing and retaining text logs
π logrotate: configuration and operation (read online) Full searchable HTML edition: Rotation policy, retention, compression, state and systemd scheduling HTML β π logrotate: configuration and operation (PDF) Rotation policy, retention, compression, state and systemd scheduling PDF βπ rsyslog
Syslog routing, selectors and journal interaction
π rsyslog: Linux log routing (read online) Full searchable HTML edition: Inputs, facilities, priorities, actions, rulesets and remote transport HTML β π rsyslog: Linux log routing (PDF) Inputs, facilities, priorities, actions, rulesets and remote transport PDF βπ Security
π SSH security
Keys, configuration, validation and operational safety
π SSH public-key authentication (read online) Full searchable HTML edition: Keypairs, agent use, server validation and practical threat boundaries HTML β π SSH public-key authentication (PDF) Keypairs, agent use, server validation and practical threat boundaries PDF β π OpenSSH server hardening (read online) Full searchable HTML edition: Effective configuration, access controls, authentication and operational verification HTML β π OpenSSH server hardening (PDF) Effective configuration, access controls, authentication and operational verification PDF βπ TOTP for SSH and sudo
PAM-based one-time passwords with standard authenticator apps
π TOTP concepts and limitations The server and phone share a secret established at enrolment. Both calculate short-lived codes from the secret and HTML β π PAM TOTP deployment checklist Test in a disposable VM, snapshot it, keep a root console and an existing SSH session. Back up PAM and SSH configur HTML βπ TOTP and two-factor authentication
Time-based one-time passwords for SSH and sudo.
π How TOTP works (read online) Full searchable HTML edition: Shared secrets, time windows, factors, threats and recovery HTML β π How TOTP works (PDF) Shared secrets, time windows, factors, threats and recovery PDF β π TOTP with OpenSSH (read online) Full searchable HTML edition: OpenSSH authentication chains and PAM integration HTML β π TOTP with OpenSSH (PDF) OpenSSH authentication chains and PAM integration PDF β π TOTP with sudo (read online) Full searchable HTML edition: PAM stack design, password plus TOTP, caching and recovery HTML β π TOTP with sudo (PDF) PAM stack design, password plus TOTP, caching and recovery PDF βπ Shell
π Bash TAB completion
Interactive completion and the programmable-completion interface
π Bash TAB completion (read online) Full searchable HTML edition: Readline, compspecs, context variables and programmable functions HTML β π Bash TAB completion (PDF) Readline, compspecs, context variables and programmable functions PDF β π Bash completion essentials TAB completes commands, paths and other words. A second TAB may list alternatives depending on Readline configurati HTML β π Six completion variables COMP_WORDS is an array of parsed words. COMP_CWORD indexes the current word (zero-based). HTML βπ Storage
π Logical Volume Manager
LVM fundamentals, RAID, thin provisioning and snapshots
π Linux LVM: fundamentals (read online) Full searchable HTML edition: Physical volumes, volume groups, logical volumes, filesystems and lifecycle operations HTML β π Linux LVM: fundamentals (PDF) Physical volumes, volume groups, logical volumes, filesystems and lifecycle operations PDF β π LVM RAID: architecture and operations (read online) Full searchable HTML edition: Redundancy, layout, monitoring, rebuilds and failure handling HTML β π LVM RAID: architecture and operations (PDF) Redundancy, layout, monitoring, rebuilds and failure handling PDF β π LVM snapshots (read online) Full searchable HTML edition: Classic snapshots, thin snapshots, consistency and restore choices HTML β π LVM snapshots (PDF) Classic snapshots, thin snapshots, consistency and restore choices PDF β π LVM thin provisioning (read online) Full searchable HTML edition: Thin pools, virtual capacity, snapshots, metadata and exhaustion HTML β π LVM thin provisioning (PDF) Thin pools, virtual capacity, snapshots, metadata and exhaustion PDF β