Shell/Bash: clear ram linux Example

By

Shell/Bash Example: This is the "clear ram linux" Example. compiled from many sources on the internet by SimpleTutorials.org

linux memory cache clear

# clear pagecache only.
sync; echo 1 > /proc/sys/vm/drop_caches

# clear dentries and inodes.
sync; echo 2 > /proc/sys/vm/drop_caches

# clear pagecache, dentries and inodes.
sync; echo 3 > /proc/sys/vm/drop_caches 

clear ram linux

sudo sync; echo 3 > /proc/sys/vm/drop_caches

linux how to free memory

echo 2 > /proc/sys/vm/drop_caches

clear ram cache linux

sync; echo 1 > /proc/sys/vm/drop_caches


* Summary: This "clear ram linux" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others