#linux

11 posts
Development

Your Bash Script Has No Seatbelt: Write Safer Shell Scripts

It is 11:40 p.m. and you are proud of yourself. You wrote a tiny shell script to clean up old build folders on your server, tested it once, and scheduled it. Three weeks later a teammate asks why the...

2026.11.21 · 17 min read · views 357
Your Bash Script Has No Seatbelt: Write Safer Shell Scripts
Development

The 2 a.m. Job That Never Ran: A Calm Guide to Cron

It is 9:14 on a Monday and you are staring at a log file that should be full. The nightly backup was supposed to run at 2 a.m. The report was supposed to land in the shared folder before the team woke...

2026.11.15 · 21 min read · views 939
The 2 a.m. Job That Never Ran: A Calm Guide to Cron
Development

Stop Trusting Your Bash Script: Strict Mode That Saves Your Friday

It is 6:40 p.m. on a Friday, and the backup script you wrote months ago has just done something unforgivable. It was supposed to clean up an old directory. Instead, a variable was empty, and the comma...

2026.11.06 · 20 min read · views 936
Stop Trusting Your Bash Script: Strict Mode That Saves Your Friday
Development

Stop Typing chmod 777: A Calm Guide to Linux File Permissions

You upload a new site to your Linux server, open the page in a browser, and see a flat, unfriendly 403 Forbidden. Or worse, you fix it by typing chmod 777 on everything, the page loads, and you quietl...

2026.11.03 · 16 min read · views 767
Stop Typing chmod 777: A Calm Guide to Linux File Permissions
Development

The Cron Job That Failed for Six Days and Told Nobody

It is 9:15 on a Monday morning. A teammate asks why the weekly report is still showing last Tuesday's numbers. You open the server, and there it is: the cron job that builds the report has not worked...

2026.10.21 · 16 min read · views 733
The Cron Job That Failed for Six Days and Told Nobody
Development

Your Bash Script Failed Last Night. It Just Didn't Tell You.

It's 2 a.m. and your nightly backup script reports "success." Three weeks later you need the backup, and the folder is empty. The script never failed. It just kept going after `cd` quietly didn't work...

2026.10.02 · 11 min read · views 2,150
Your Bash Script Failed Last Night. It Just Didn't Tell You.
Development

The Site Is Down. Stop Restarting and Read the Logs.

It's 2:14 on a Tuesday afternoon and the site is down. Someone from support has already pasted a screenshot into chat. Your first instinct is to refresh the page, then restart the service, then refres...

2026.09.19 · 20 min read · views 902
The Site Is Down. Stop Restarting and Read the Logs.
Development

The Disk Is Full. The Files Are Gone.

The alert fires at 2:14 a.m. Disk usage on the app server is at 97%. You SSH in, half awake, and run the command everyone runs: ```bash df -h ``` ``` Filesystem Size Used Avail Use% Mounted on /dev/nv...

2026.09.07 · 18 min read · views 1,604
The Disk Is Full. The Files Are Gone.
Development

The Script Works. Cron Just Refuses to Run It.

It is 9:07 a.m. and the report that should have been in your inbox at 6:00 is not there. You SSH into the server, run the script by hand, and it works perfectly — output, exit code zero, everything. Y...

2026.08.29 · 20 min read · views 1,440
The Script Works. Cron Just Refuses to Run It.
Development

The Disk Says It's Full. df Says It's Not.

It always happens at the worst possible moment. A deploy that ran fine yesterday hangs halfway through. The application starts throwing 500s. You SSH into the box, and there it is, sitting in the log ...

2026.08.26 · 20 min read · views 3,297
The Disk Says It's Full. df Says It's Not.