Basics overview¶
Every chapter starts with a basics page: the concepts, tables and workflows you need before the individual commands make sense. Here they are all in one place, in the order of the handbook.
Linux administration¶
-
The first minute on a new server
Orientation: as a command sequence
-
The most important directories on a Linux server
Navigation
-
Files: Rules for working safely with files
-
Viewing files: the right command for each task
-
Text processing
-
Permissions: Owner, group, rwx and octal notation explained
-
Users and groups: passwd, shadow, group, sudoers
-
Processes: PID, process states and signals
-
systemd and services: Units, unit files and their states
-
Packages: Repositories, dependencies and
apt,dnfandpacmanside by side -
Network: IP addresses, subnets, ports, DNS and where each distribution keeps its network configuration
-
SSH: Host keys, key authentication, the files in
~/.sshand the client configuration -
Disks and storage: Block devices, partition tables, file systems,
/etc/fstaband LVM -
Archives: Archiving vs. compressing, file extensions and the methods compared
-
Logs: Where logs are kept, log levels and log rotation
-
Scheduling: cron syntax, where cron jobs live and systemd timers compared
-
Performance and kernel: The four resources, reading load, where the bottleneck is, and what to install
-
Backup: The 3-2-1 rule, what to back up, restic or borg, and a complete backup routine
Server services¶
-
Web servers: Where the configuration lives on each distribution, server blocks and virtual hosts, reverse proxy and TLS
-
File shares: NFS or Samba,
/etc/exportsandsmb.conf, setting up a share step by step, ports and firewall -
Databases: PostgreSQL or MariaDB, packages and paths per distribution, how login works, users and rights, access from other machines
-
Understanding caches and message queues
Caches and message queues: Cache or message broker, Redis and Valkey, ports, securing Redis, persistence and memory limits, RabbitMQ concepts
-
Search with Elasticsearch and OpenSearch: Elasticsearch or OpenSearch, installation and paths, the REST API with curl, green, yellow and red, memory and system settings
Automation & DevOps¶
-
Bash scripting: How a script is built: shebang, quoting, variables, arguments and exit codes
-
Git: Working directory, staging area and repository,
.gitignore, SSH keys and the daily workflow -
Virtualization: KVM, QEMU and libvirt, checking the host, networks and bridges, where the files live, Proxmox
-
Docker: Images and containers, installation, ports and volumes, a Dockerfile and a compose.yaml
-
Kubernetes: What you need to install, pods, deployments and services, manifests and kubeconfig
-
Ansible: Control node and managed servers, inventory, modules, playbooks, roles and installation
-
CI/CD: Pipelines, jobs and runners, what to install, a workflow for GitHub and one for GitLab
-
Monitoring: How Prometheus works, ports and packages, a scrape configuration, PromQL, alert rules and Alertmanager
Security¶
-
Understanding security scanning
Security scanning: Attack surface, what each tool finds, what to install, and the rules for scanning
-
Certificates and encryption: How TLS works, certificate chains, file formats, where certificates live and what to install
-
Understanding SELinux and AppArmor
SELinux and AppArmor: How SELinux and AppArmor work, which distribution uses which, and the way from a denial to a fix
-
VPN with WireGuard: How WireGuard works, what to install, a complete server and client setup and the firewall