"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! 😊