All Free Scripts

Every bash script on BashSnippets.xyz — copy-paste ready, explained line by line. No signup, no paywall.

Advertisement
Automation & File Management
Automated File Backup
beginner
Copy any folder to a backup location with a timestamp. Schedule with cron and never lose work again.
Delete Old Log Files
intermediate
Find and delete log files older than 30 days automatically. Includes safe preview mode with -print.
Create a Dated Folder
beginner
One command that creates a folder stamped with today's date. Never lose track of project folders again.
Monitoring & Alerts
Disk Space Warning
beginner
Check disk usage and warn before your drive fills up. Schedule hourly to catch problems before they crash your server.
Quick System Info Report
beginner
Hostname, uptime, RAM, disk, and IP — all in one command. Alias it to syscheck for instant access from anywhere.
Check If Website Is Up
beginner
Ping your site and get alerted when it goes down. Schedule every 5 minutes to catch outages before your users do.
Search & Text
Search Files for Text (grep)
intermediate
Search every file in a folder for a keyword. Shows filename and line number for every match. Includes a full flag cheat sheet.
Best Practices & Safety
Bash Error Handling
intermediate
What set -euo pipefail does and why every production script needs it. With real examples of what goes wrong without it.
Advertisement