snipt

Ctrl+h for KB shortcuts
#2070

Bash

clear memory cache in linux

sync; echo 3 > /proc/sys/vm/drop_caches
https://snipt.net/embed/467ff4ee4dc1647748e2f1b684046777/
https://snipt.net/raw/467ff4ee4dc1647748e2f1b684046777/
467ff4ee4dc1647748e2f1b684046777
bash
Bash
1
2014-04-11T05:12:31
True
False
/api/public/snipt/2070/
clear-memory-cache-in-linux
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>sync<span class="p">;</span> <span class="nb">echo </span>3 &gt; /proc/sys/vm/drop_caches </span></pre></div> </td></tr></table>
cache, clear, linux, page