Disk Space Warning Script
Copy a disk space warning bash script using df, thresholds, cron, and email alerts. Monitor Linux se...
Full guide →30 copy-paste bash scripts with plain-English explanations. Tested on Ubuntu 22.04 LTS and macOS Ventura.
Copy a disk space warning bash script using df, thresholds, cron, and email alerts. Monitor Linux se...
Full guide →Accidental deletion or disk failure permanently destroys data with no undo on Linux. Timestamps each...
Full guide →Guessing server state during an outage costs response time. One bash script snapshots hostname, upti...
Full guide →Opening files manually to find a pattern across a codebase wastes time. grep -rn searches every file...
Full guide →Discovering a site is down from a user complaint means hours of lost traffic already gone. curl -s a...
Full guide →Comparison operator mistakes in bash scripts cause silent logic failures on unexpected input. Covers...
Full guide →Backup directories without timestamps overwrite previous runs and sort unpredictably. date +%Y-%m-%d...
Full guide →Your disk hit 100% and the server stopped. Find the biggest files and directories fast with du and f...
Full guide →EADDRINUSE means something is squatting on your port. Find the process with lsof or ss, then kill it...
Full guide →A bash script that maps every port your server is listening on, along with the process name holding...
Full guide →A bash script that removes stopped containers, unused images, dangling volumes, and build cache from...
Full guide →A for loop over the output of ls word-splits on filenames with spaces and silently skips files. Loop...
Full guide →Unmanaged log files silently fill /var/log until disk writes fail and services crash. find -mtime de...
Full guide →Bash silently continues after failed commands by default — a broken cd followed by rm -rf destroys t...
Full guide →The ps/grep/copy-PID/kill workflow takes four steps every time you need to stop a process. pkill by...
Full guide →World-writable files on a web server let any compromised script overwrite your application. find -pe...
Full guide →A runaway process consuming 100% CPU goes undetected until the server becomes unresponsive. top -bn1...
Full guide →Monitoring scripts without email alerts mean failures go unnoticed until users report them. Wraps ma...
Full guide →A mistaken DROP TABLE or storage failure permanently destroys database data with no built-in undo. m...
Full guide →Password-based SSH is vulnerable to brute-force attacks and credential leaks on any internet-exposed...
Full guide →Duplicate files accumulate silently in archives and download folders, wasting gigabytes of disk spac...
Full guide →A crashed nginx or postgresql stays down for hours without a watchdog to detect and recover it. syst...
Full guide →A local-only backup dies with the machine. Push an incremental, resumable copy to a remote server wi...
Full guide →A bash script that connects to any domain over TLS, reads the certificate, and tells you how many da...
Full guide →A while-read loop silently dropped the last server in a monitoring list because the file had no trai...
Full guide →A function reused the variable name 'target' without declaring it local, overwrote the caller's vari...
Full guide →A bash function cannot return a string with return — that keyword sets an exit code only. Use echo p...
Full guide →Storing a list as a space-separated string breaks the moment one element contains a space, splitting...
Full guide →A script that reads $1 as a value will accept --env as that value and deploy nowhere, silently. Pars...
Full guide →Field-counting with cut -d/ -f3 returns the wrong slice the moment a URL gains an s for https. Param...
Full guide →Free Interactive Tools
Need a cron expression? chmod calculator?
10 browser-based bash tools — no install required
6 scripts + shared library + 52-page field guide. The production layer the free snippets don't cover.
Get the Toolkit →