Created
June 23, 2016 08:30
-
-
Save piaoger/68472c9b52418a248228f4f2cd4c7f44 to your computer and use it in GitHub Desktop.
clear cached memory in Linux
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/sh | |
# https://www.blackmoreops.com/2014/10/28/delete-clean-cache-to-free-up-memory-on-your-slow-linux-server-vps/ | |
sync | |
sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment