Created
October 21, 2015 18:07
-
-
Save rhoconlinux/f2d8759b50a0dc9ae83b to your computer and use it in GitHub Desktop.
freem script
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
| #!/bin/bash | |
| clear | |
| free -m | |
| sudo sync && sudo sysctl -w vm.drop_caches=3 | |
| sudo swapoff -a | |
| sudo swapon -a | |
| sudo sync && sudo sysctl -w vm.drop_caches=3 | |
| free -m | |
| sudo fstrim -v / | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment