Browsing Tag
bash
105 posts
How to Create a Bash File Encryption Tool
I still remember the first time I lost a laptop with unencrypted client files on it. Nothing sensitive…
How to Use the ‘trap’ Command in Bash
A script I wrote years ago used to leave behind temporary files scattered all over /tmp whenever someone…
How to Create a Bash File Transfer Utility
A few years back I was constantly moving files between three or four servers I managed — a…
How to Create a Bash Stopwatch
I built my first Bash stopwatch out of pure necessity while timing how long a batch of database…
How to Create a Bash Countdown Timer
I built my first countdown timer script to remind myself to stand up and stretch every 25 minutes…
How to Debug Bash Scripts with ‘set -x’
I spent an embarrassing number of hours early in my scripting life staring at a script that “should…
How to Set Default Values in Bash
I once inherited a deployment script from a former colleague that would silently fail — or worse, do…
How to Use the ‘read’ Command in Bash
Every interactive Bash script I’ve ever written — from setup wizards to confirmation prompts before destructive actions —…
How to Use Conditional Expressions in Bash
I’ll admit it took me longer than I’d like to admit to stop confusing [, [[, and ((…
How to Automate Backup Tasks in Bash
I lost a week of work exactly once, back when I trusted “I’ll back it up manually later”…