Here's how it usually goes:
You deploy something. Traffic is light. Server load sits at 15% and you move on to the next thing. Then traffic grows, or a cron job stacks on itself, or a memory leak slowly eats through your RAM over 72 hours. By the ti...
I Google "bash remove file extension" at least once a month.
Every time I need ${filename%.txt} I have to look it up. I've written that exact syntax probably 40 times across different scripts. My brain refuses to memorize it. And every time I need i...
Every experienced Linux user has been there: you install something, or move directories around, and suddenly command not found appears for tools you know are installed.
You check which, type, echo $PATH, and still waste 10-20 minutes hunting down th...
The Problem
You're setting file permissions and you type chmod 754... or was it 744? You Google it. Again.
Or you're starting a new bash script and you copy the header block from your last script because you can't remember the exact set -euo pipef...
The Problem
You're deploying a script and need the right file permissions. You type chmod 754... or was it 744? You Google it. You find a Stack Overflow thread from 2011. You get it wrong anyway.
chmod's octal notation is one of those things every...
Cron job tutorials have a problem. They teach you the five-field syntax, show you a couple of examples like 0 2 , and send you on your way. What they don't cover is everything that needs to go around the expression for the job to actually work rel...