Browsing Tag
bash
105 posts
How to Monitor Log Files in Bash
Long before I had a proper monitoring stack in place on any project, I was watching log files…
How to Kill Processes in Bash
If you’ve ever worked on a Linux or macOS terminal, you’ve probably run into a frozen script, a…
How to Check Disk Space in Bash
There’s nothing quite like the panic of a server going down because a disk quietly filled up overnight.…
How to Run Bash Scripts at Startup
I still remember the first time I needed a script to run automatically every time a server rebooted…
How to Set Environment Variables in Bash
Environment variables are one of those things that seem trivial at first — just a name and a…
How to Secure Your Bash Scripts
I once inherited a deployment script that ran as root, accepted unvalidated user input, and passed it straight…
How to Parse Command Line Arguments in Bash
Every useful Bash script eventually grows beyond a single fixed behavior, and that’s when command-line arguments become essential.…
How to Check Network Connectivity in Bash
A few years ago I was debugging a deployment pipeline that kept failing intermittently, and it took embarrassingly…
How to Perform Text Manipulation in Bash
Text manipulation is where Bash genuinely shines. Long before I got comfortable with Python for data processing, I…
How to Use Regular Expressions in Bash
Regular expressions (regex) are one of those tools that feel intimidating the first time you see them, but…