Skip to content

rajputganesh217/Shell_Scripting_Version2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Scripts Collection

This repository contains a collection of useful shell scripts for system administration, automation, and monitoring tasks. Each script is numbered for quick reference.

Index of Scripts

Program No Script Name / Description
1.sh Lists all files in a specified directory and saves the output to a text file
2.sh Monitors disk usage and sends an email alert if usage exceeds a specified threshold
3.sh Checks whether a specified service is running and restarts it if it's not running
4.sh Backs up a specified directory to a remote server using rsync and SSH
5.sh Checks for software updates and installs them automatically
6.sh Compresses and archives log files older than a certain number of days
7.sh Generates a report of system resource usage, including CPU, memory, and disk usage
8.sh Monitors a list of websites and sends an email notification if any are down
9.sh Scans a directory for files matching a certain pattern and deletes them
10.sh Fetches data from AWS EC2 API and prints instance IDs, public, and private IP addresses
11.sh Adds new users to the system based on a list of names in a CSV file
12.sh Periodically syncs a local directory with a remote server using rsync and cron
13.sh Automates the process of setting up a new virtual host on a web server
14.sh Compares two directories and reports any differences in their content
15.sh Finds and lists all files in a directory tree that have not been accessed in a specified number of days
16.sh Automatically organizes files in a directory based on their file types (images, documents, audio, etc.)
17.sh Checks for and reports any failed SSH login attempts on a Linux server
18.sh Monitors a specified file for changes and executes a specific action when modified
19.sh Automates creating a new MySQL database, user, and granting privileges
20.sh Retrieves the current weather for a specified location using a weather API
21.sh Calculates the total disk space used by a specified user and outputs the result
22.sh Sends a daily summary of system logs via email
23.sh Performs a search and replace operation on multiple files in a directory
24.sh Renames a large number of files based on a specified pattern or naming convention
25.sh Generates and emails a report of newly created user accounts in the last 24 hours

You can execute any script using:

bash <script_number>.sh

About

shell scripts with error handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages