Skip to content

About

Linux script to free up hard drive space

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

diskcleanup

Linux script to free up hard drive space

This is just a little script I wrote so that my tiny partition (30gb) could run Ubuntu.

It runs in five stages:

  • Stage 1: Remove uneeded packages
  • Stage 2: Clean apt cache
  • Stage 3: Clear systemd journal logs except for the last week
  • Stage 4: Clean snap packages (disabled by default)
  • Stage 5: Remove old linux headers (disabled by default)

TODO:

  • Add flags so that you can select which stage to run
  • Add logic to make sure that snaps are closed
  • Add logic to make sure that listed headers are not being used

About

Linux script to free up hard drive space

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages