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 PDF β†— πŸ“„ Normal-mode command reference PDF β†— πŸ“„ Pocket quick reference PDF β†— πŸ“„ Vi Vim Command Crib Sheet PDF β†—

πŸ“ Logging

πŸ“ logrotate

Rotating, compressing and retaining text logs

πŸ“„ logrotate quick reference /etc/logrotate.conf defines global defaults; /etc/logrotate.d/ contains per-service rules. HTML β†— πŸ“„ Logrotate Reference PDF β†—

πŸ“ rsyslog

Syslog routing, selectors and journal interaction

πŸ“„ rsyslog quick reference rsyslog receives messages and routes them according to rules. Facilities describe sources; severities describe prio HTML β†— πŸ“„ Rsyslog Reference PDF β†—

πŸ“ Security

πŸ“ SSH security

Keys, configuration, validation and operational safety

πŸ“„ OpenSSH hardening checklist Keep a working session open and ensure console access before editing remote SSH configuration. HTML β†— πŸ“„ Ssh Key Authentication PDF β†— πŸ“„ SSH public-key authentication The private key remains on the client. The server stores the public key in authorized_keys. During authentication t HTML β†— πŸ“„ Sshd Hardening 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 An authenticator and server share a secret. Both calculate a short-lived code from that secret and the current time. Correct PDF β†— πŸ“„ TOTP with OpenSSH A common implementation uses libpam-google-authenticator; the name describes the PAM module, not a requirement to use Google’ PDF β†— πŸ“„ TOTP with sudo The sudo PAM service can require a TOTP prompt using pam_google_authenticator.so. It is separate from the SSH PAM service. PDF β†—

πŸ“ Shell

πŸ“ Bash TAB completion

Interactive completion and the programmable-completion interface

πŸ“„ Bash Tab Completion 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

πŸ“„ LVM fundamentals A physical volume (PV) is a disk or partition initialised for LVM. A volume group (VG) pools PV capacity. A logical HTML β†— πŸ“„ Lvm Fundamentals PDF β†— πŸ“„ LVM RAID reference RAID can maintain availability after certain disk failures; it cannot replace independent, tested backups. HTML β†— πŸ“„ Lvm Raid PDF β†— πŸ“„ LVM snapshots A snapshot captures a point-in-time view of a logical volume. It is not a backup unless exported and stored indepen HTML β†— πŸ“„ Lvm Snapshots PDF β†— πŸ“„ LVM thin provisioning A thin pool stores shared physical extents; thin volumes advertise virtual capacity that may exceed currently alloc HTML β†— πŸ“„ Lvm Thin PDF β†—