"A collection of essential shell scripts for automation, system administration, and DevOps tasks. π Learning and documenting shell scripting step by step!"
This repository contains a collection of Shell Scripts for automation, system administration, and DevOps tasks.
Each script is documented with its purpose, usage, and how it works.
cleanup_logs.shβ Automatically removes old log files.backup.shβ Creates automatic backups.file_manipulation.shβ Demonstratessedandawkfor file manipulation.
cron_scheduler.shβ Sets up and manages cron jobs.set_permissions.shβ Sets correct file permissions.user_mgmt.shβ Creates users and manages groups.setup_ssh.shβ Configures SSH keys for secure login.
disk_usage.shβ Monitors disk space usage.uptime_check.shβ Checks server uptime.monitor_resources.shβ Monitors CPU and RAM usage.process_manager.shβ Manages system processes (view, search, kill).resource_alert.shβ Monitors CPU, RAM, and Disk usage. Sends alerts if the usage exceeds specified thresholds.memory_cleaner.shβ Free up memory by clearing caches and swap space.
hello.shβ Your first Bash script.variables.shβ Demonstrates the use of variables.conditions.shβ Uses if-else conditions.loops.shβ Simple for and while loop examples.functions.shβ Demonstrates Bash functions.error_handling.shβ Error management using traps.logging.shβ Logs script execution for better debugging.
networking_basics.shβ Perform basic networking tasks like checking IP, pinging, and DNS lookups.dns_checker.shβ Check DNS resolution using nslookup and dig.update_hostname.shβ Update system hostname both temporarily and permanently.firewall_manager.shβ Automates firewall rule management using iptables.ssh_manager.shβ Automates SSH management tasks like server connection, SSH key copying, and connection testing.
git clone https://github.com/AnugrahMassey/Shell-Scripting.git
cd shell-scriptingchmod +x script_name.sh./script_name.shπ If you have script suggestions or improvements, feel free to create a pull request or open an issue! π
π Follow my DevOps journey as I learn and document my progress in this repository.
π This project is open-source under the MIT License β feel free to use and modify the scripts!
Happy scripting! π