OneLinersCommand workbench
Guides
Operational guides

Complete procedures with a way back.

Searchable, versioned procedures with prerequisites, verification, concrete output, and rollback.

Guides
243
Favorites
0
243 launch guides · 2601 reviewed steps
10 of 243 guides

Incident Response & Troubleshooting · System Administration

Fix Too many open files on Linux: process limits, leaks and systemd

“Too many open files” can mean a process hit its descriptor limit, the host exhausted its file table, or a library reported another resource problem. Identify the failing PID and errno, compare live limits with descriptor use, and repair the correct launch boundary without hiding a leak behind unlimited settings.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate8 stepsUbuntu Server

System Administration · Incident Response & Troubleshooting · Storage & Filesystems

Recover an Ubuntu server with systemd rescue and emergency modes

Recover a non-booting Ubuntu Server by choosing the least invasive systemd target, preserving console evidence, identifying the failed boot dependency, applying a reversible correction, and proving a clean normal boot.
Save to collectionCreate a collection in the sidebar first.
caution60 minadvanced12 stepsUbuntu Server

AI/ML · System Administration · Security · Observability & Monitoring

Build a private self-hosted bot with Ollama

Deploy an authenticated loopback service that uses Ollama through its OpenAI-compatible API, exposes only three compiled read-only host probes, records content-free audit evidence, runs under a hardened systemd account, and supports controlled backup, upgrade, rollback, and removal.
Save to collectionCreate a collection in the sidebar first.
caution210 minadvanced11 stepsOllama

Packages & Updates · Security

Configure automatic Ubuntu security updates with controlled reboot windows

Apply Ubuntu security updates through reviewed origins, dry-run the exact unattended policy, schedule APT timers inside a declared maintenance window, and permit reboots only at a known local time when no users are logged in.
Save to collectionCreate a collection in the sidebar first.
caution85 minintermediate9 stepsUbuntu Server

Services & Applications · Security

Configure journald retention, forwarding, and centralized remote logs

Make local journals persistent and bounded, receive per-host journal files on a dedicated collector, and upload structured events over mutually authenticated TLS while preserving a local buffer and auditable failure behavior.
Save to collectionCreate a collection in the sidebar first.
caution105 minadvanced10 stepsUbuntu Server

Storage & Filesystems · System Administration

Fix wrong fs type, bad option, bad superblock and configure reliable mounts

The mount error “wrong fs type, bad option, bad superblock” is a summary, not a diagnosis of corruption. Identify the exact storage layer, read the kernel reason, and separate missing helpers or invalid options from real damage before configuring UUID-based systemd mounts.
Save to collectionCreate a collection in the sidebar first.
caution55 minintermediate12 stepsUbuntu Server

System Administration · Incident Response & Troubleshooting

Fix systemd status=203/EXEC and Start request repeated too quickly

Find the original ExecStart failure, inspect the effective unit and executable path, validate repairs, and reset the start limit only after the cause is fixed.
Save to collectionCreate a collection in the sidebar first.
caution35 minintermediate8 stepssystemd

Services & Applications · Security

Configure a dedicated PHP-FPM pool for one application

Separate Unix identity, socket, resource limits, logs, environment, and health checks for an application instead of sharing the default pool.
Save to collectionCreate a collection in the sidebar first.
caution45 minadvanced8 stepsPHP-FPM

Security · Services & Applications

Harden PHP-FPM with systemd service controls

Measure the current unit, add compatible filesystem and privilege restrictions, validate application paths, and roll out hardening without breaking package upgrades.
Save to collectionCreate a collection in the sidebar first.
caution50 minadvanced8 stepssystemd

System Administration · Security

Create and harden a custom systemd service

Use a dedicated identity, explicit paths, bounded restarts, sandboxing, logs, and a verified rollback.
Save to collectionCreate a collection in the sidebar first.
caution45 minadvanced8 stepssystemd