Resources Library

Cheat sheets, reference guides and useful bits of Linux and Unix knowledge. No gatekeeping. Occasional cryptic commands.

Resources β€” Under Construction

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 β†—