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
- Clone the repository
git clone https://github.com/camarm-dev/free-space-linux
- Execute
cleaner.sh
bash cleaner.sh
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
:
- snap list --all | awk '/désactivé/{print $1, $3}' |
+ snap list --all | awk '/disabled/{print $1, $3}' |
cleaner.sh
; Main scriptclean/
apt.sh
; Apt cleaner scriptsnaps.sh
; Snaps cleaner scriptthumbnails.sh
; Thumbnails cleaning scriptjournal.sh
; Journal cleaning scriptdocker.sh
; Docker images prune script
Don't hesitate to contribute to add more cleaning scripts !