Created
March 18, 2024 08:33
-
-
Save lionants02/c031c7daecfdce9037b70171f649ce8f to your computer and use it in GitHub Desktop.
Ubuntu clear cache
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 | |
# Note, we are using "echo 3", but it is not recommended in production instead use "echo 1" | |
echo "echo 1 > /proc/sys/vm/drop_caches" | |
echo 1 > /proc/sys/vm/drop_caches |
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
6 */1 * * * /home/thanachai/clearcache.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment