Linux scripts
danger
Please ensure you understand the purpose of each script before running it, as some scripts may alter system settings or delete files. Always run with appropriate permissions, especially for scripts requiring sudo access.
Download
Scripts
- backup.sh
- cleanup.sh
- disk_usage.sh
- system_info.sh
- Description: Creates a backup of a specified directory.
- Usage:
./backup.sh <source_directory> <backup_directory>
- Description: Removes files older than a specified number of days in a given directory.
- Usage:
./cleanup.sh <directory> <days>
- Description: Displays the disk usage of the current directory.
- Usage:
./disk_usage.sh
- Description: Displays system information including hostname, OS, kernel version, uptime, CPU, and memory usage.
- Usage:
./system_info.sh