Clear Memory Cache
Login | Register RSS
01/30/2012 - Linux 

Clear Memory Cache

If you run into a situation where the memory cache needs to be flushed, as root, run the commands below to syncronize changes in memory to hard disk & then clear the memory cache.

sync;
echo 3 | sudo tee /proc/sys/vm/drop_caches > /dev/null;
If you need to do this routinely for some reason, you may want to setup an alias for this.


If you like this site or any of its content, please help promote it. Use the social media buttons below to help spread the word. Don't forget to post in the comments section.

  Print   Email