Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 21 '13 at 7:49

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

1 Answer 1

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

 
discard

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.