Buy All 80 Premium WordPress Themes for $59.99
No Additional Fees, Pay Once and Use Unlimited Time for Unlimited Domains, Free Lifetime Updates

How to Free up Space on Ubuntu

How to Free up Space on Ubuntu

I like to keep my Laptop SSD tidy. So, from time to time I clean up unnecessary files using a few Ubuntu/Linux terminal commands:

Clean up No More Required Packages

$ sudo apt-get autoremove

Clean up Outdated Packages

$ sudo apt-get autoclean

Clean up Old System Journal Logs

$ sudo journalctl --vacuum-time=2d

Remove Old Snap App Versions

save below as file and execute it with sudo:

set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
    while read snapname revision; do
        snap remove "$snapname" --revision="$revision"

Clean up Image Thumbnails

$ rm -rf ~/.cache/thumbnails/*

Leave a Reply