My Custom Linux Scripts Index
This page tracks custom scripts I’ve written or installed on my systems, primarily placed in /usr/local/bin
for global use. Each script is either a utility, security tool, or automation helper I use regularly.
📁 Script Directory: /usr/local/bin
This directory is in the system $PATH
and allows me to run any executable script from any location in the terminal.
To make a script globally accessible:
sudo mv myscript.sh /usr/local/bin/myscript
sudo chmod +x /usr/local/bin/myscript
Then simply run:
myscript
📜 Script List
Script Name | Description | Created / Added On |
---|---|---|
bookstack-backup |
Creates and compresses daily BookStack backup | May 4, 2025 |
update-syncthing-ufw |
Dynamically updates UFW with resolved DDNS IP | May 10, 2025 |
syncthing-log-summary |
Summarizes UFW log attempts on Syncthing ports | May 10, 2025 |
fail2ban-ip-lookup |
Enriches banned IPs with GeoIP, PTR, AbuseIPDB | May 12, 2025 |
clear-fail2ban-cache |
Removes stale lookup results for a clean run | (Planned) |
mygreeting |
Test script: echoes a message from anywhere |
🧠 Tips
-
Use clear, lowercase names without
.sh
extensions for simplicity -
Add versioning or logs inside long-running scripts
-
Store source versions of scripts in
/opt/scripts/
or Git repo for management
🛠️ Related Commands
Make a script executable:
chmod +x scriptname
Test if a command is globally accessible:
which scriptname
Check your system PATH:
echo $PATH