Last active
December 3, 2021 19:38
-
-
Save pvojnisek/3a04e0786850b8db3861770e771a76ef to your computer and use it in GitHub Desktop.
Cleaning unnecessary files from the system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get autoremove | |
sudo du -sh /var/cache/apt | |
sudo apt-get autoclean | |
sudo apt-get clean | |
du -sh ~/.cache/thumbnails | |
rm -rf ~/.cache/thumbnails/ | |
sudo journalctl --vacuum-size=500M | |
#if [[ which docker && docker --version ]]; then | |
# sudo docker image prune -a -f | |
#fi | |
echo gist location: https://gist.github.com/pvojnisek/3a04e0786850b8db3861770e771a76ef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run the script:
bash <(wget -nv -O - https://gist.githubusercontent.com/pvojnisek/3a04e0786850b8db3861770e771a76ef/raw/clean_linux_files.sh)