A collection of Bash shell scripts created while learning Linux, scripting, and DevOps fundamentals. This repository includes beginner-level scripts, system monitoring utilities, and basic automation tools.
This repo contains individual .sh files, each demonstrating a specific concept or solving a small real-world problem.
| Script | Description |
|---|---|
hello.sh |
Prints a simple greeting message |
variables.sh |
Demonstrates how to declare and use variables in Bash |
for_loop.sh |
Example of a for loop |
while_loop.sh |
Example of a while loop |
functions.sh |
Demonstrates defining and calling functions |
arg.sh / arg_demo.sh |
Shows how to pass and use command-line arguments |
| Script | Description |
|---|---|
system_info.sh |
Displays system information (OS, uptime, etc.) |
disk_check.sh |
Checks disk usage |
disk_health.sh |
Monitors disk health or usage thresholds |
service_check.sh |
Checks if a specific service is running |
health.sh |
Basic system health monitoring script |
| Script | Description |
|---|---|
backup_script.sh |
Creates backups of files/directories |
log_rotate.sh |
Rotates logs to manage file size |
install_package.sh |
Installs a package using system package manager |
package_install.sh |
Another package installation example |
safe_script.sh |
Demonstrates safer scripting practices and error handling |
Clone the repository:
git clone https://github.com/dikshitbonu-bit/shell-scripts.git
cd shell-scriptsGive execute permission:
chmod +x script_name.shRun the script:
./script_name.sh- Linux environment (Ubuntu / Amazon Linux / etc.)
- Bash shell
- Basic Linux command-line knowledge
This repository is part of my DevOps learning journey and focuses on:
- Bash scripting fundamentals
- Linux system interaction
- Automation basics
- Real-world scripting practice
Status: Active learning project
Scripts range from beginner concepts to practical system automation tools.