Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Utility Scripts

This repository contains a collection of simple utility scripts for Linux to perform common tasks.

Scripts

  1. backup.sh

    • Description: Creates a backup of a specified directory.
    • Usage:
      ./backup.sh <source_directory> <backup_directory>
  2. cleanup.sh

    • Description: Removes files older than a specified number of days in a given directory.
    • Usage:
      ./cleanup.sh <directory> <days>
  3. disk_usage.sh

    • Description: Displays the disk usage of the current directory.
    • Usage:
      ./disk_usage.sh
  4. system_info.sh

    • Description: Displays system information including hostname, OS, kernel version, uptime, CPU, and memory usage.
    • Usage:
      ./system_info.sh

Installation

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

Instructions

  1. Create a directory for your scripts and the README.md file.
  2. Copy the script files and README.md content into the respective files in the directory.
  3. Make the scripts executable using the chmod +x *.sh command.
  4. 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!

About

Some useful scripts to use on Linux

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages