Field notes from the terminal.
Long-form, slowly written essays on Linux, networking, DevOps, and the boring infrastructure that keeps the rest of it standing. No guides written by SEO. No newsletter signup.
Linux tutorials and DevOps guides — Linux administration, server security, bash scripting, Docker, SSH security, cron jobs, file permissions.Essential Linux Tools List: 50+ Must-Have Commands for Every Admin
A comprehensive list of essential Linux tools and commands organized by category — networking, file management, monitoring, security, and more.
written by Khimananda Oli · sysadmin, recovering kubernaut
Showing all 77 articles
- linux
ext4 vs XFS vs Btrfs vs ZFS: Choosing a Linux Filesystem in 2026
ext4, XFS, Btrfs and ZFS compared for real servers: distro defaults, resizing limits, checksums, snapshots, RAID and the workloads where each one wins or hurts.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
The Best Terminal AI Assistants for Linux in 2026
Compare terminal AI tools for Linux: llm, aichat, shell-gpt, Claude Code, Codex CLI, Gemini CLI and Aider, by local-model support, safety controls and fit for servers.
11 minKhimananda OliKhimananda Oli11 min · est. read - linux
sshd_config Explained: Every Option That Matters, With Defaults
A reference to sshd_config: how first-match parsing, drop-ins and Match blocks work, plus defaults and meaning for auth, crypto, forwarding, session and logging options.
12 minKhimananda OliKhimananda Oli12 min · est. read - linux
sed Cheat Sheet: 30 Substitution One-Liners Worth Memorizing
30 tested sed substitutions: Nth match, capture groups, case changes, trimming, CRLF fixes, section-scoped edits, safe in-place changes, and GNU vs macOS quirks.
10 minKhimananda OliKhimananda Oli10 min · est. read - linux
The Linux at Command: Schedule One-Off Tasks the Right Way
Run a command once at a set time with at, batch, atq and atrm: time syntax, the environment trap, lost output, access control, and the systemd-run alternative.
10 minKhimananda OliKhimananda Oli10 min · est. read - devops
Jenkins in 2026: When It Is Still the Right CI Choice
Jenkins is no longer the default CI, but it still wins for self-hosted, air-gapped and odd-hardware builds. When to keep it, when to leave, and how to run it sanely.
10 minKhimananda OliKhimananda Oli10 min · est. read - security
Two-Factor SSH with TOTP: pam_google_authenticator Setup
Add TOTP codes to SSH with pam_google_authenticator: key plus code via AuthenticationMethods, PAM edits for Debian and RHEL, automation exemptions, and lockout recovery.
11 minKhimananda OliKhimananda Oli11 min · est. read - security
Securing GRUB: Password-Protect the Bootloader the Right Way
Lock GRUB so nobody at the console can add rd.break or init=/bin/bash: PBKDF2 hashes, unrestricted boot entries, Debian vs RHEL setup, and what it cannot stop.
10 minKhimananda OliKhimananda Oli10 min · est. read - linux
Hard Links vs Symbolic Links: Inodes, Use Cases and Gotchas
How hard links and symlinks really work at the inode level, when to use each, and the gotchas that bite: dangling links, ln -sfn, sed -i, cp, tar and rsync.
10 minKhimananda OliKhimananda Oli10 min · est. read - ai
When Not to Trust AI with Root: Guardrails for AI-Driven Ops
Practical guardrails before an AI agent touches a Linux server: a non-root account, exact sudo rules, a forced-command gate, dry runs, audit logs and a kill switch.
11 minKhimananda OliKhimananda Oli11 min · est. read - linux
systemd Unit Files: The Complete Directive Reference
Every systemd directive you will actually use, by section: [Unit] dependencies, Type= and Restart=, Exec prefixes, sandboxing, [Install], specifiers and version gaps.
12 minKhimananda OliKhimananda Oli12 min · est. read - linux
grep Cheat Sheet: Patterns, Context, and Recursive Search
A dense GNU grep reference: every everyday flag, BRE vs ERE vs PCRE syntax, context lines, recursive search with include and exclude, exit codes, and tested one-liners.
10 minKhimananda OliKhimananda Oli10 min · est. read - linux
anacron: Scheduled Jobs for Machines That Aren't Always On
How anacron catches up on daily, weekly and monthly jobs a powered-off machine missed: anacrontab syntax, timestamps, Debian vs RHEL wiring, and per-user setups.
10 minKhimananda OliKhimananda Oli10 min · est. read - docker
Your First Dockerfile: From Source Code to Running Container
Write a Dockerfile for a small Python web app line by line, build and run it, use the layer cache, and fix the errors every beginner hits, from ports to platforms.
10 minKhimananda OliKhimananda Oli10 min · est. read - devops
Self-Hosted GitLab Runners: Install, Caching, and Scaling
Run GitLab CI jobs on your own Linux hosts: install and register gitlab-runner, pick an executor, tune config.toml, share caches over S3, and autoscale on demand.
11 minKhimananda OliKhimananda Oli11 min · est. read - security
ssh-agent Explained: Caching SSH Keys Without Leaking Them
How ssh-agent holds decrypted keys, why agent forwarding exposes them, and how key lifetimes, confirmation, locking and destination constraints keep them safe.
10 minKhimananda OliKhimananda Oli10 min · est. read - security
Reduce Linux Attack Surface: Remove Unused Packages and Services
Inventory listening ports, sockets and timers, then disable, mask or purge what a server does not need on Debian/Ubuntu and RHEL/Fedora without breaking dependencies.
11 minKhimananda OliKhimananda Oli11 min · est. read - linux
Inodes Explained: Why a Disk Fills Up with Gigabytes Free
What an inode stores, why ext4 can hit No space left on device with free gigabytes, how to find the directories eating inodes, and how XFS, Btrfs and tmpfs differ.
10 minKhimananda OliKhimananda Oli10 min · est. read - ai
AI-Assisted Capacity Planning from sar and vmstat Data
Turn weeks of sysstat history into a capacity forecast: reduce sar data to daily percentiles, fit the trend yourself, and let an LLM interpret headroom and risks.
11 minKhimananda OliKhimananda Oli11 min · est. read - linux
The Complete /etc/fstab Reference: Fields and Mount Options
Every /etc/fstab field explained, from UUID and LABEL to dump and fsck pass, plus the mount options that matter: nofail, _netdev, noatime, x-systemd and hardening.
11 minKhimananda OliKhimananda Oli11 min · est. read - linux
find Command Cheat Sheet: Search by Name, Size, Time and Type
A dense GNU find reference: name and path patterns, -size units and rounding, -mtime math, permission tests, pruning, -exec vs xargs, -printf and safe -delete.
10 minKhimananda OliKhimananda Oli10 min · est. read - linux
systemd Timers: OnCalendar Expressions and Persistent Jobs
Write systemd timers that behave: OnCalendar syntax checked with systemd-analyze, Persistent catch-up after downtime, random delays, monotonic timers, cron equivalents.
10 minKhimananda OliKhimananda Oli10 min · est. read - docker
Installing Docker Engine on Linux: Setup Done Right
Install Docker Engine from the official repo on Ubuntu, Debian, Fedora and RHEL, then set log rotation, address pools, rootless mode and close the UFW port gap.
11 minKhimananda OliKhimananda Oli11 min · est. read - devops
GitHub Actions Self-Hosted Runners on Linux: Setup and Security
Install a GitHub Actions runner on Linux as a systemd service, then lock it down: dedicated user, ephemeral jobs, runner groups, egress rules and public repo risks.
11 minKhimananda OliKhimananda Oli11 min · est. read - security
Generating SSH Keys the Right Way: ssh-keygen Options That Matter
The ssh-keygen flags worth knowing: KDF rounds, comments, per-purpose key files, FIDO2 hardware keys, passphrase rotation, fingerprints and restricted automation keys.
10 minKhimananda OliKhimananda Oli10 min · est. read - security
Disable Root Login: Sudo-Only Linux Administration Done Right
Close every root entry point (SSH, console, su, Cockpit) without locking yourself out, then design sudoers rules that keep an audit trail and plan break-glass recovery.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
LLM-Generated Ansible Playbooks: Pitfalls and How to Catch Them
Why AI-written Ansible breaks idempotence, invents module parameters and leaks secrets, plus the ansible-lint, check-mode and Molecule workflow that catches it first.
11 minKhimananda OliKhimananda Oli11 min · est. read - linux
ls Cheat Sheet: Every Flag You'll Actually Use
A practical ls cheat sheet: listing, sorting, time and size flags, reading ls -l output, quoting, colors, aliases, GNU vs macOS differences, and when to use find.
9 minKhimananda OliKhimananda Oli9 min · est. read - linux
Cron Beyond the Basics: Environment, Locking, and Logging
Make cron jobs production-grade: reproduce cron's minimal environment, escape % signs, stop overlapping runs with flock, bound runtime, and log to the journal properly.
10 minKhimananda OliKhimananda Oli10 min · est. read - docker
Docker Explained: Images, Containers, and the Daemon
How Docker works on Linux: the client, dockerd, containerd and runc, image layers and manifests, overlay filesystems, and the namespaces and cgroups behind containers.
11 minKhimananda OliKhimananda Oli11 min · est. read - devops
CI/CD Pipeline Design: The Stages Every Deployment Needs
Design a CI/CD pipeline that fails fast and deploys safely: lint, build once, test, scan, publish by digest, staged rollout, smoke tests, and a rollback that works.
11 minKhimananda OliKhimananda Oli11 min · est. read - security
SSH Key Types Compared: Ed25519 vs RSA vs ECDSA in 2026
Ed25519, RSA, ECDSA and FIDO2 SSH keys compared on security, speed and compatibility, plus SHA-1 deprecation, FIPS limits, post-quantum SSH and safe key rotation.
11 minKhimananda OliKhimananda Oli11 min · est. read - security
Applying CIS Benchmarks on Linux Without Breaking Production
A safe rollout plan for CIS Benchmarks on RHEL and Ubuntu: scan with OpenSCAP or USG, know which controls break servers, tailor exceptions, and remediate in stages.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Migrating SysV Init Scripts to systemd Units with AI
Use an LLM to convert legacy /etc/init.d scripts into native systemd units: give it the right context, map every init idiom to a directive, and verify before cutover.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Automating Postmortems: Feeding journald Logs to an LLM
Turn journald logs from a finished incident into a blameless postmortem draft: extract the window, merge hosts, build a cited timeline, and catch causal leaps.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
AI-Assisted SELinux Troubleshooting: Decoding AVC Denials
Use an LLM to read SELinux AVC denials without letting it reach for setenforce 0: find hidden denials, fix labels and booleans first, and keep audit2allow last.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Natural Language to jq: Querying JSON on the Linux Command Line
Get correct jq filters from AI by sending the shape of your JSON, not the data — real idioms, the mistakes models make, and how to verify on sample data first.
10 minKhimananda OliKhimananda Oli10 min · est. read - ai
AI Code Review for Shell Scripts: Quoting Bugs and Unsafe Patterns
Run ShellCheck first, then use AI to review legacy bash for what it misses — temp-file races, set -e gaps, rm -rf traps — with CI hooks and bats tests for the fixes.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Turning Bash History into Documentation with an LLM
Make bash history worth keeping, pull out one session by time window, scrub the secrets, and have an LLM turn the commands that worked into how-tos and onboarding notes.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Explaining Kernel Panics and OOM Killer Logs with AI
Read OOM-killer reports and kernel panics with an LLM: collect evidence, decode gfp_mask and the task table, tell cgroup OOMs from global ones, and verify the cause.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Auditing iptables and nftables Rules with AI (and Verifying It)
Dump your ruleset, have AI flag shadowed, redundant and overly broad rules, then prove each finding with counters and nmap, including the IPv6 and Docker gaps.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Using AI CLIs Like Claude Code for Linux Server Maintenance
Agentic CLIs can investigate and fix servers, which is why they need guardrails: read-only first, a dedicated user, tight allowlists, dry-run plans and audit logs.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Generating Linux Runbooks with AI (Without Shipping Fiction)
Turn shell history, scripts and incident notes into runbooks a tired engineer can follow at 3 AM — the structure that matters, verification gates, and what AI must not write.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Writing find, awk and sed One-Liners with AI (and Verifying Them)
Get correct one-liners from a model on the first or second try — how to describe the task, the GNU vs BSD trap, and a verification loop that catches wrong answers safely.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Using AI for Cron Expressions — and the Trap It Gets Wrong
Generate and explain cron schedules with an LLM, then verify them. Covers the day-of-month/day-of-week OR behaviour models routinely miss, plus systemd OnCalendar conversion.
10 minKhimananda OliKhimananda Oli10 min · est. read - ai
Using AI to Summarize Massive Log Files on Linux
Logs are far larger than any context window. Reduce first with grep, awk and uniq, then let a local model explain the aggregate — with working pipelines and cost-free privacy.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
AI-Assisted Incident Response: Triaging a Compromised Linux Server
Use a local model to accelerate triage on a suspected compromise without destroying evidence — what to capture first, what AI reads well, and the decisions it must never make.
13 minKhimananda OliKhimananda Oli13 min · est. read - ai
Reviewing AI-Generated Shell Scripts Before You Run Them
A concrete review process for AI-written bash — the seven mistakes models repeat, ShellCheck and dry-run gates, container testing, and a checklist to run before production.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Debugging systemd Unit Failures with an LLM Assistant
Collect the right systemd context in one command, hand it to a local model, and verify what it tells you — plus the directives models routinely invent and how to catch them.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Using AI to Explain a Linux Command Before You Run It
Build a local explain function that decodes any shell command before execution — prompt design, dangerous patterns to catch, and how to verify the answer against real documentation.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Air-Gapped AI: Running Local Models on Linux with No Internet
Move models, Python wheels and container images onto an offline Linux host — Ollama blob transfer, GGUF plus Modelfile, pip wheelhouses, checksum verification and update process.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Benchmarking LLM Inference on Linux: Measuring Tokens per Second Properly
Measure local LLM performance you can trust — TTFT vs tokens/sec, llama-bench, throughput under concurrency, and the confounders that make most published numbers useless.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Fine-Tuning an LLM on a Single Linux GPU with LoRA and QLoRA
When fine-tuning is the right tool, how LoRA and QLoRA fit training onto one consumer GPU, dataset format, the hyperparameters that matter, and exporting to Ollama.
13 minKhimananda OliKhimananda Oli13 min · est. read - ai
Kubernetes GPU Scheduling for AI Workloads
Schedule GPUs in Kubernetes — device plugin vs GPU Operator, requesting nvidia.com/gpu, taints and node selectors, time-slicing and MIG for sharing, and why pods stay Pending.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Self-Hosted ChatGPT Alternatives on Linux: Open WebUI and text-generation-webui
Set up a private chat interface for local models on Linux — Open WebUI with Ollama, or text-generation-webui with multiple loaders — plus systemd units and safe remote access.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Local RAG on Linux: Search Your Own Documents with a Local LLM
Build a fully offline retrieval-augmented generation setup on Linux — embeddings with Ollama, a vector store, sensible chunking, and how to tell when retrieval is failing.
13 minKhimananda OliKhimananda Oli13 min · est. read - ai
GPU-Accelerated Docker Containers on Linux with NVIDIA Container Toolkit
Give Docker and Podman containers GPU access on Linux — install the NVIDIA Container Toolkit, pick the right CUDA image, use Compose GPU reservations, and fix driver errors.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Monitoring GPU Usage on Linux: nvidia-smi, nvtop and rocm-smi
Read GPU utilization, VRAM, power and throttling correctly on Linux — nvidia-smi query mode, nvtop, rocm-smi, intel_gpu_top, CSV logging and Prometheus metrics.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Running JupyterLab as a systemd Service on a Linux Server
Install JupyterLab in a venv, run it as a hardened systemd service, set a password, put nginx and TLS in front, cap resources, and fix the usual proxy and kernel errors.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Intel GPUs and NPUs on Linux: OpenVINO for Local Inference
Get Intel Arc, integrated Xe graphics and Core Ultra NPUs running AI workloads on Linux — driver stack, OpenVINO setup, device selection, and troubleshooting.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Running AI Models on a Raspberry Pi: What's Actually Possible
An honest look at local AI on Raspberry Pi — which models run usefully, how to set up Ollama and whisper.cpp on ARM, when to add an accelerator, and thermal and memory limits.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
LLM Quantization Explained: GGUF, AWQ, GPTQ and Choosing a Format
How quantization shrinks LLMs to fit consumer GPUs — the memory math, what Q4_K_M actually means, how GGUF, GPTQ, AWQ and bitsandbytes differ, and which to pick.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
vLLM vs llama.cpp vs TGI: Choosing an LLM Server for Linux
How vLLM, llama.cpp, TGI and Ollama differ on hardware requirements, concurrency, quantization support and operations — with a decision guide and setup commands for each.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Whisper on Linux: Local Speech-to-Text from the Command Line
Run OpenAI's Whisper offline on Linux with whisper.cpp or faster-whisper — build it, pick a model size, convert audio correctly, batch transcribe, and generate subtitles.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Running Stable Diffusion Locally on Linux with ComfyUI or A1111
Install ComfyUI and AUTOMATIC1111 on Linux, size VRAM correctly, manage models safely, run them as systemd services, and fix the usual CUDA and VRAM errors.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
AMD ROCm on Linux: Getting Radeon GPUs Working for AI
Install ROCm on Linux, fix device permissions, run PyTorch and llama.cpp on Radeon, use HSA_OVERRIDE_GFX_VERSION for unsupported cards, and debug the common failures.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Install NVIDIA Drivers and CUDA on Linux Without Breaking Your System
Driver vs toolkit vs container runtime, distro-native installation, Secure Boot and DKMS, GPU containers, and fixes for every common NVIDIA error on Linux.
12 minKhimananda OliKhimananda Oli12 min · est. read - ai
Best Linux Distro for AI and Machine Learning Workstations
Ubuntu, Fedora, Arch, Debian or RHEL for AI work? A practical comparison focused on GPU driver packaging, kernel cadence, vendor support, and what actually breaks.
11 minKhimananda OliKhimananda Oli11 min · est. read - ai
Building llama.cpp on Linux: CUDA, ROCm, Vulkan, and CPU Backends
Compile llama.cpp from source on Linux with the right backend — CUDA, ROCm/HIP, Vulkan, or optimized CPU — then run, serve, quantize, and benchmark GGUF models.
13 minKhimananda OliKhimananda Oli13 min · est. read - ai
How to Run Local LLMs on Linux with Ollama: Complete Setup Guide
Install Ollama on Linux, run your first local LLM, enable GPU acceleration, tune the systemd service, and use the API — a practical guide for admins and developers.
12 minKhimananda OliKhimananda Oli12 min · est. read - linux
Linux Tools Cheat Sheet: The Only Reference You Need
A concise, printable Linux command cheat sheet covering file ops, networking, permissions, processes, and more. Print it or bookmark it.
8 minKhimananda OliKhimananda Oli8 min · est. read - linux
Linux File Permissions Explained: A Complete Guide
Understand how Linux file permissions work — from the basics of read, write, and execute to advanced topics like setuid, setgid, sticky bits, and ACLs.
10 minKhimananda OliKhimananda Oli10 min · est. read - linux
Cron Jobs: The Complete Guide to Scheduling Tasks in Linux
Learn how to schedule automated tasks with cron — syntax, examples, common pitfalls, and best practices for production crontabs.
9 minKhimananda OliKhimananda Oli9 min · est. read - docker
Docker for Linux Admins: From Basics to Production
A practical guide to Docker for Linux administrators — containers, images, Dockerfiles, networking, volumes, and production deployment tips.
12 minKhimananda OliKhimananda Oli12 min · est. read - security
SSH Security Best Practices for Production Servers
Harden your SSH configuration with key-based authentication, port changes, fail2ban, jump hosts, and modern security techniques.
10 minKhimananda OliKhimananda Oli10 min · est. read - security
Linux Server Hardening Checklist: 20 Essential Steps
A practical checklist for securing Linux servers — from initial setup to firewall rules, kernel tuning, audit logging, and intrusion detection.
11 minKhimananda OliKhimananda Oli11 min · est. read