Skip to content

dikshitbonu-bit/shell-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shell Scripts Collection

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.

Repository Structure

This repo contains individual .sh files, each demonstrating a specific concept or solving a small real-world problem.

Script Descriptions

Basics & Practice Scripts

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

System & Monitoring Scripts

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

Automation & Maintenance Scripts

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

How to Run a Script

Clone the repository:

git clone https://github.com/dikshitbonu-bit/shell-scripts.git
cd shell-scripts

Give execute permission:

chmod +x script_name.sh

Run the script:

./script_name.sh

Requirements

  • Linux environment (Ubuntu / Amazon Linux / etc.)
  • Bash shell
  • Basic Linux command-line knowledge

Purpose of This Repository

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.

About

Shell scripts I wrote while learning DevOps - from basic to production-ready

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages