https://github.com/yanbrasiliano/clean-gnu-linux
This script is designed to clean and remove logs, browser files, and temporary files. It ensures optimal system performance by regularly deleting unnecessary data, freeing up disk space, and maintaining privacy. Ideal for routine maintenance and keeping your system clutter-free.
https://github.com/yanbrasiliano/clean-gnu-linux
cleaner linux shell-script
Last synced: 4 months ago
JSON representation
This script is designed to clean and remove logs, browser files, and temporary files. It ensures optimal system performance by regularly deleting unnecessary data, freeing up disk space, and maintaining privacy. Ideal for routine maintenance and keeping your system clutter-free.
- Host: GitHub
- URL: https://github.com/yanbrasiliano/clean-gnu-linux
- Owner: yanbrasiliano
- License: gpl-3.0
- Created: 2021-03-01T20:46:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-01T21:18:09.000Z (8 months ago)
- Last Synced: 2024-12-28T17:30:09.323Z (6 months ago)
- Topics: cleaner, linux, shell-script
- Language: Shell
- Homepage:
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clean GNU/Linux - Automating Tasks ๐งน
## Introduction
Clean GNU/Linux is a script designed to automate various cleaning tasks in Debian-based Linux distributions. This tool helps maintain a clean and efficient operating system environment by simplifying routine maintenance.---
## Features
- **APT Maintenance**: Updates, upgrades, and cleans unused packages.
- **Cache Cleaning**: Clears cache and temporary directories.
- **Docker Cleanup**: Removes unused Docker images, containers, and volumes.
- **Dry-Run Mode**: Simulates actions without making changes.
- **Customizable Options**: Use flags to tailor the cleaning process.---
## Getting Started
### Prerequisites
- A Debian-based Linux distribution.
- Root privileges for system-wide cleanup tasks.
- Basic knowledge of terminal commands.### Installation
1. **Clone the Repository**
Clone the Clean GNU/Linux repository to your local machine:
```bash
git clone https://github.com/yanbrasiliano/clean-gnu-linux.git
```2. **Set Script Permissions**
Navigate to the cloned repository directory and make the script executable:
```bash
cd clean-gnu-linux
chmod +x cleaning.sh
```3. **Run the Script**
Execute the script with the desired options:
```bash
./cleaning.sh [options]
```---
## Usage
### Options
- **`--dry-run`**: Simulate cleaning actions without making changes.
- **`--skip-docker`**: Skip cleaning Docker-related resources.
- **`--help`**: Display a detailed help message with usage instructions.### Examples
1. **Dry-Run Simulation**
```bash
./cleaning.sh --dry-run
```
Simulates the cleaning process without deleting files or modifying the system.2. **Skip Docker Cleanup**
```bash
./cleaning.sh --skip-docker
```
Runs the cleaning script but skips all Docker-related cleanup tasks.3. **Show Help**
```bash
./cleaning.sh --help
```
Displays the help message with detailed usage instructions.---
## Contributing
Contributions are welcome! To contribute:
1. Fork the repository.
2. Create a feature branch.
3. Submit a pull request with your enhancements.Feel free to share bug fixes, optimizations, or new features.
---
## License
This script is distributed under the MIT License. For more details, refer to the LICENSE file in the repository.---
## Enjoy the script and happy cleaning! ๐