Shell/Bash: linux drop caches Example

By

Shell/Bash Example: This is the "linux drop caches" 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 

clean command linux

sudo apt-get autoclean

linux drop caches

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

how to clear memory in ubuntu 18.04

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

linux drop caches

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



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

Others