Last active
November 16, 2021 03:04
-
-
Save craftslab/1a945f6d66892fa431f736bf818889a2 to your computer and use it in GitHub Desktop.
ubuntu clean
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
#!/bin/bash | |
rm -rf $HOME/.cache/thumbnails/* | |
sudo apt-get autoremove --purge | |
sudo apt-get clean | |
sudo journalctl --disk-usage | |
sudo journalctl --vacuum-time=1s | |
sudo journalctl --disk-usage | |
sudo rm -rf /var/lib/apt/lists/* | |
sudo rm -rf /var/log/* | |
sudo rm -rf /tmp/* | |
sync | |
echo "3" | sudo tee /proc/sys/vm/drop_caches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment