ArchiveAugust 2025

Creating logrotate Configs

C

Introduction logrotate is the de facto standard on Linux and UNIX systems for automatically rotating, compressing, and pruning log files. A well-crafted logrotate configuration keeps disks from filling up, ensures older logs are archived, and makes debugging easier. In this guide, you’ll learn: Where logrotate looks for configs and how it runs Global vs. per-service configuration structure All...

Logging and Error Checking in Bash Scripts

L

Introduction When your automation grows beyond a handful of lines, ad-hoc echo’s and unchecked failures become a maintenance headache. In this guide, you’ll learn how to build: a configurable logging function with levels, colors, and optional file output a robust error-checking framework using exit codes and traps real-world examples to tie it all together 1. Why Abstract Logging & Error...

Recent Posts

Archives

About

middle aged linux nerd. likes coding and pizza. owner of this particular site.