Skip to content

anguishe/bash-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash-scripts

Free, copy-paste bash scripts for Linux users, developers, and sysadmins. Plain-English explanations. No signup. No paywall.

📖 Full library with explanations: bashsnippets.xyz/snippets 🛠️ Free interactive tools: bashsnippets.xyz/tools


Scripts in this repo

Script What it does Full page
disk-space-warning.sh Check disk usage and alert when threshold exceeded Full page →
delete-old-log-files.sh Find and delete logs older than N days Full page →
check-if-website-is-up.sh Ping a URL and alert on downtime Full page →
automated-file-backup.sh Copy a folder to backup with timestamp Full page →
kill-a-process.sh Kill any process by name using pkill/pgrep Full page →
monitor-cpu-ram-usage.sh Log CPU/RAM warnings above threshold Full page →
restart-service-if-stopped.sh Auto-restart a systemd service via cron Full page →
mysql-database-backup.sh Dump, compress, timestamp, and rotate MySQL backups Full page →
bash-error-handling.sh Boilerplate for set -euo pipefail Full page →
ssh-key-setup-script.sh Generate Ed25519 key, set permissions, copy to server Full page →
file-permissions-security.sh Audit world-writable files and fix SSH key perms Full page →
search-files-for-text-grep.sh Recursive grep with filename and line number Full page →
quick-system-info-report.sh One-shot hostname, uptime, RAM, disk, IP report Full page →
create-dated-folder.sh Create a folder stamped with today's date Full page →
bash-send-email-alert.sh Send email from bash when a threshold is hit Full page →

Free interactive tools

Tool What it does
Bash Boilerplate Generator Pick options, inject a snippet, copy a production-ready .sh template
Bash Exit Code Lookup Look up exit codes 0–255 with copy-paste error handlers
Cron Job Builder Build cron expressions visually with production-safe bash wrappers
chmod Permissions Builder Click permissions, get the exact chmod command instantly
Bash $PATH Debugger Paste your $PATH, see what's broken, get a cleaned export line

License

MIT — use freely, attribution appreciated.

Source: bashsnippets.xyz

About

Free copy-paste bash scripts for Linux users and developers. Explained in plain English. New scripts added weekly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors