https://github.com/camarm-dev/free-space-linux
A simple disk cleaner script linux.
https://github.com/camarm-dev/free-space-linux
Last synced: about 1 month ago
JSON representation
A simple disk cleaner script linux.
- Host: GitHub
- URL: https://github.com/camarm-dev/free-space-linux
- Owner: camarm-dev
- Created: 2024-02-21T12:38:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T15:16:10.000Z (over 2 years ago)
- Last Synced: 2025-03-05T14:18:39.071Z (about 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Clean your linux system
This repository contains bash scripts to clean your linux system.
For the moment, these are cleaned:
- APT cache
- Unused snaps
- Cached thumbnails
- System logs
- Docker dandeling images
## Getting started
- Clone the repository
```shell
git clone https://github.com/camarm-dev/free-space-linux
```
- Execute `cleaner.sh`
```shell
bash cleaner.sh
```
## Known issues
The script `clean/snaps.sh`, parse unused snaps to deleted them. The problem is that the word used for parsing is _`désactivé`_, a french word (because my snap is french).
To resolves this, just edit `clean/snaps.sh`:
```diff
- snap list --all | awk '/désactivé/{print $1, $3}' |
+ snap list --all | awk '/disabled/{print $1, $3}' |
```
## Sctructure
- `cleaner.sh`; Main script
- `clean/`
- `apt.sh`; Apt cleaner script
- `snaps.sh`; Snaps cleaner script
- `thumbnails.sh`; Thumbnails cleaning script
- `journal.sh`; Journal cleaning script
- `docker.sh`; Docker images prune script
## Contribute
Don't hesitate to contribute to add more cleaning scripts !