This repository contains a collection of simple utility scripts for Linux to perform common tasks.
-
backup.sh
- Description: Creates a backup of a specified directory.
- Usage:
./backup.sh <source_directory> <backup_directory>
-
cleanup.sh
- Description: Removes files older than a specified number of days in a given directory.
- Usage:
./cleanup.sh <directory> <days>
-
disk_usage.sh
- Description: Displays the disk usage of the current directory.
- Usage:
./disk_usage.sh
-
system_info.sh
- Description: Displays system information including hostname, OS, kernel version, uptime, CPU, and memory usage.
- Usage:
./system_info.sh
- Clone this repository:
git clone <repository_url> cd <repository_directory> 2. Make scripts executable:
chmod +x *.sh
Contributing
Feel free to contribute by adding more scripts or improving existing ones.
License
This project is licensed under the MIT License.
- Create a directory for your scripts and the
README.mdfile. - Copy the script files and
README.mdcontent into the respective files in the directory. - Make the scripts executable using the
chmod +x *.shcommand. - Update the
<repository_url>and<repository_directory>in the README with your specific information.
Let me know if you need further modifications or additional scripts!