Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to clear all caches via command line on linux, how do you do this?

Mem: 1033200k total, 175560k used, 857640k free, 5880k buffers Swap: 2097144k total, 0k used, 2097144k free, 70804k cached

share|improve this question

migrated from Jan 21 '13 at 7:49

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

You can do this:

echo 3 >/proc/sys/vm/drop_caches

As root, of course.

share|improve this answer
Thanks very much. – freja Jan 21 '13 at 11:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.