Monitor URL HTTP Status Shell Script (curl Exit Codes, Cron)
Check website or API HTTP status from Bash: curl -o /dev/null -w, expect 200, alert on 4xx/5xx, timeout,…
Read tutorial →Browse step-by-step tutorials in this topic.
Check website or API HTTP status from Bash: curl -o /dev/null -w, expect 200, alert on 4xx/5xx, timeout,…
Read tutorial →
Read a file line by line in Bash with while read: handle spaces safely, IFS for fields, process…
Read tutorial →
Use mktemp on Linux for safe temp files in scripts: mktemp, mktemp -d directory, mktemp --tmpdir, trap cleanup…
Read tutorial →
Use basename and dirname on Linux in shell scripts: extract filename from path, get parent directory, basename -s…
Read tutorial →
Use seq on Linux: seq 1 10, seq with step, seq for loops, padded width with -f, and…
Read tutorial →
Use test and [ ] in Bash on Linux: -f file exists, -d directory, -r readable, -z empty…
Read tutorial →
Use xargs on Linux with find and shell pipelines: xargs -I placeholders, -n batch size, -P parallel jobs,…
Read tutorial →
Audit listening ports on Linux with a Bash script using ss or netstat: TCP/UDP, process names, compare to…
Read tutorial →
Download large files reliably with a Bash curl script: resume with -C -, retry loop, timeout, checksum optional,…
Read tutorial →
Rename hundreds of files in Linux with a Bash for loop: change extensions, prefix dates, dry-run preview, and…
Read tutorial →