Created
April 22, 2020 11:49
-
-
Save xettri/a204f58041309ab4433a4756b9628696 to your computer and use it in GitHub Desktop.
bash file to clear system ram cache, swap and remove packages cache
This file contains hidden or 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
su -c "echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '\n%s\n' 'Ram cache and swap Cleared'" root | |
apt-get clean | |
apt-get autoremove --purge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment