Skip to content

"A collection of essential shell scripts for automation, system administration, and DevOps tasks. πŸš€ Learning and documenting shell scripting step by step!"

Notifications You must be signed in to change notification settings

AnugrahMassey/Shell-Scripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Shell-Scripting

"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.


πŸ“‚ Scripts Included

🧹 File Management & Cleanup

  • cleanup_logs.sh – Automatically removes old log files.
  • backup.sh – Creates automatic backups.
  • file_manipulation.sh – Demonstrates sed and awk for file manipulation.

⏳ Scheduling & Automation

  • 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.

πŸ“Š Monitoring & Management

  • 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.

πŸ› οΈ Development Practice

  • 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 & Security

  • 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.

πŸš€ How to Use the Scripts

1️⃣ Clone the Repository

git clone https://github.com/AnugrahMassey/Shell-Scripting.git
cd shell-scripting

2️⃣ Make Scripts Executable

chmod +x script_name.sh

3️⃣ Run a Script

./script_name.sh

πŸ“’ Contributions & Feedback

πŸ“Œ 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.


πŸ“œ License

πŸ“œ This project is open-source under the MIT License – feel free to use and modify the scripts!


Happy scripting! 😊

About

"A collection of essential shell scripts for automation, system administration, and DevOps tasks. πŸš€ Learning and documenting shell scripting step by step!"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages