A collection of useful utility scripts for system administration, automation, and common tasks.
This repository contains various utility scripts designed to simplify system management, automation, and maintenance tasks. These scripts are organized by purpose and platform to help system administrators and developers streamline their workflows.
utility-scripts/
├── ubuntu-desktop-cleanup.sh # Desktop environment cleanup script
├── ubuntu-server-cleanup.sh # Server environment cleanup script
└── ubuntu-server-init.sh # Server initialization script
Server initialization and setup script for Ubuntu systems.
Purpose: Automates the initial setup and configuration of Ubuntu server instances.
Usage:
chmod +x ubuntu-server-init.sh
sudo ./ubuntu-server-init.shServer environment cleanup and maintenance script.
Purpose: Performs system cleanup tasks including removing old packages, clearing logs, and freeing up disk space on Ubuntu servers.
Usage:
chmod +x ubuntu-server-cleanup.sh
sudo ./ubuntu-server-cleanup.shDesktop environment cleanup script for Ubuntu.
Purpose: Cleans up unnecessary files, caches, and packages specific to Ubuntu desktop environments.
Usage:
chmod +x ubuntu-desktop-cleanup.sh
sudo ./ubuntu-desktop-cleanup.sh- Clone the repository:
git clone https://github.com/awsqed/utility-scripts.git
cd utility-scripts- Make scripts executable:
chmod +x *.sh- Run the desired script:
sudo ./script-name.shYou can also download individual scripts directly:
wget https://raw.githubusercontent.com/awsqed/utility-scripts/master/ubuntu-server-init.sh
chmod +x ubuntu-server-init.sh- Operating System: Ubuntu (tested on Ubuntu 20.04, 22.04, and 24.04)
- Permissions: Most scripts require root/sudo access
- Shell: Bash (typically pre-installed on Ubuntu)
- Review Before Running: Always review scripts before executing them, especially with sudo privileges
- Backup Important Data: Create backups before running cleanup or system modification scripts
- Test in Non-Production: Test scripts in a development or staging environment first
- Check Compatibility: Ensure scripts are compatible with your Ubuntu version
Contributions are welcome! If you have utility scripts that could benefit others:
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-script) - Commit your changes (
git commit -m 'Add new utility script') - Push to the branch (
git push origin feature/new-script) - Open a Pull Request
- Include clear documentation for each script
- Add usage examples and prerequisites
- Follow existing naming conventions
- Test scripts thoroughly before submitting
- Include error handling and user feedback
This project is open source and available under the MIT License.
If you encounter any issues or have questions:
- Open an issue
- Check existing issues for solutions
- Contribute fixes via pull requests
Scripts are regularly updated to support newer Ubuntu versions and incorporate community feedback. Check the commit history for recent changes.
Thanks to all contributors who help improve these utility scripts!
Note: Always exercise caution when running scripts with elevated privileges. Review the code and understand what each script does before execution.