Linux

Categorized | System, cli

Clear the memory cache in Linux

In Linux, you can clear the cache of the memory by using

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

Author Profile

T4L ;

Other posts by T4L

Author's web site



Are you satisfied with this blog?
Why not subscribe our RSS Feed? you will always get the latest post.


3 Comments

  1. failzo

    How to do that with Ubuntu? I tried it with sudo, but it keeps saying Permission is needed.

    faizlo

    1
  2. anand

    log on to root and try the command

    2
  3. Tarentrulle

    or try sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"

    3

1 Trackback(s)

  1. 21 02 2009 : Clear memory cache to speed up your box « Linux & Stuff

Leave A Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>