Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

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
git clone https://github.com/camarm-dev/free-space-linux
  • Execute cleaner.sh
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:

- 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 !

About

A simple disk cleaner script linux.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages