clear the cache from memory

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

By: lunarblu
2009-08-20 17:28:56

6 Alternatives + Submit Alt

What Others Think

Won't the kernel automatically sync dirty pages to disk when you drop caches? It seems like the sync is redundant.
bwoodacre · 677 weeks and 1 day ago
You can learn so many such commands from here and it's good to see the details shared here. This particular post shares the commands for clearing the cache from memory. There are five alternatives associated with these commands are mentioned here. Hope that you will update more such commands from here.
Alyssalauren · 49 weeks and 2 days ago
I would first like to say I have never left a review, or at least that I remember I never left one but this clash of clans game is something else. I have nothing negative to say about this game. I downloaded this years ago, it was honestly one of the first apps I got. I’ve played it and I will be honest, I also have taken some breaks. To this day it continues to be my favorite game and my friends and I have invested a lot of time into clash of clans. The way you you can design your base and think strategically is absolutely perfect and Supercell continues to add great new features and balances to the paint by number online game overall.
luciham20 · 45 weeks and 1 day ago
A debt of gratitude is in order for posting this information. I simply need to tell you that I simply look at your site and I discover it exceptionally fascinating and educational. I can hardly wait to peruse bunches of your posts.aukcje sztuki
Geekstation · 34 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: