Release memory used by the Linux kernel on caches

free && sync && echo 3 > /proc/sys/vm/drop_caches && free
The Linux kernel uses unused memory in caches. When you execute "free" you never get the "real" available memory.
Sample Output
             total       used       free     shared    buffers     cached
Mem:       1018916     980832      38084          0      46924     355764
-/+ buffers/cache:     578144     440772
Swap:      2064376        128    2064248
             total       used       free     shared    buffers     cached
Mem:       1018916     685008     333908          0        224     108252
-/+ buffers/cache:     576532     442384
Swap:      2064376        128    2064248

38
2009-08-05 23:44:34

7 Alternatives + Submit Alt

What Others Think

Another way: add up the "MemFree", "Buffers", and "Cached" amounts in /proc/meminfo.
bwoodacre · 642 weeks and 2 days ago
really saved my bacon today!
linuxrawkstar · 578 weeks and 1 day ago
DON'T DO THIS! This command shows a serious lack of understanding by the author and those who voted it up. You don't want to clear your disk cache because its a helpful thing. If you want to know how much memory you have available for applications, look at the number in the free column on the -/+ buffers/cache line. For more information, see http://www.linuxatemyram.com/
deltaray · 479 weeks and 3 days ago
DON'T DO THIS! This command shows a serious lack of understanding by the author and those who voted it up. You don't want to clear your disk cache because its a helpful thing. If you want to know how much memory you have available for applications, look at the number in the free column on the -/+ buffers/cache line. For more information, see http://www.linuxatemyram.com/
deltaray · 479 weeks and 3 days ago
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. Click here
bojokey283 · 48 weeks ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. read more
xoheko1229 · 47 weeks and 3 days ago
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. instagram Abonnenten kaufen bei abonnenten24.de
bojokey283 · 46 weeks and 6 days ago
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. Domótica
bojokey283 · 46 weeks and 6 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. digital marketing
bojokey283 · 46 weeks and 5 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. alquiler de carros en cartagena
bojokey283 · 45 weeks ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. bridgend house clearance
bojokey283 · 44 weeks and 6 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. hartlepool removals
bojokey283 · 44 weeks and 6 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. Heimautomation
bojokey283 · 44 weeks and 3 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. tree surgeon in colchester
bojokey283 · 44 weeks and 3 days ago
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. covid isla mujeres
bojokey283 · 44 weeks ago
Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. best places to snorkel in cozumel
bojokey283 · 42 weeks and 6 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. pályázatírás" rel="nofollow">http://www.fokuszpalyazat.hu/'>pályázatírás Debrecen referenciákkal
bojokey283 · 40 weeks and 2 days ago
this is really nice to read..informative post is very good to read..thanks a lot! best smm panel
xoheko1229 · 39 weeks and 6 days ago
This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here! best cenotes yucatan
xoheko1229 · 39 weeks and 5 days ago
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. rumah pintar
bojokey283 · 39 weeks and 3 days ago
I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. kombájn szállítás olcsón
bojokey283 · 38 weeks and 4 days ago
Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject. best place to eat in cozumel
xoheko1229 · 38 weeks and 4 days ago
I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. nightlife in Cozumel
xoheko1229 · 38 weeks and 2 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. yuctana food
xoheko1229 · 37 weeks and 6 days ago
hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. tulum resorts 5 star
xoheko1229 · 37 weeks and 6 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. tulum top restaurants
xoheko1229 · 37 weeks and 5 days ago
Your work is very good and I appreciate you and hopping for some more informative posts. Thank you for sharing great information to us. top hotels in playa del carmen
xoheko1229 · 37 weeks and 3 days ago
Please let me know if you’re looking for a article writer for your site. You have some really great posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some material for your blog in exchange for a link back to mine. Please send me an email if interested. Thank you!top restaurants holbox
xoheko1229 · 37 weeks ago
Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks, I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks. treatnheal
xoheko1229 · 35 weeks and 5 days ago
Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks, I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks. treatnheal
xoheko1229 · 35 weeks and 5 days ago
I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up.. Automatyka domowa
xoheko1229 · 34 weeks and 6 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. luxury bathroom vanity
bojokey283 · 33 weeks and 6 days ago
Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. best area to stay in tulum
xoheko1229 · 32 weeks and 6 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. coronavirus mexico https://www.islandlifemexico.com/coronavirus-in-mexico/
bojokey283 · 32 weeks and 5 days ago
I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! taroko gorge trails
xoheko1229 · 32 weeks and 3 days ago
I am very happy to discover your post as it will become on top in my collection of favorite blogs to visit. What to do in Hualien
bojokey283 · 32 weeks and 2 days ago
I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. Area Rug Cleaning
bojokey283 · 26 weeks and 6 days ago
Hi! Thanks for the great information you have provided! You have touched on crucuial points! things to do in cozumel
xoheko1229 · 24 weeks and 3 days ago
Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. St Thomas charter boats
xoheko1229 · 23 weeks and 4 days ago
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.. applicant tracking system
xoheko1229 · 22 weeks and 1 day ago
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.. Keynote Speaker
xoheko1229 · 21 weeks and 4 days ago
Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. Heilpraktiker Wiesbaden
xoheko1229 · 20 weeks and 4 days ago
Keep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information. unabhängiger Finanzberater
xoheko1229 · 20 weeks and 1 day ago
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post.! cozumel
xoheko1229 · 19 weeks ago
Please let me know if you’re looking for a article writer for your site. You have some really great posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some material for your blog in exchange for a link back to mine. Please send me an email if interested. Thank you! cozumel
xoheko1229 · 19 weeks ago
Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot. blog
xoheko1229 · 17 weeks and 4 days ago
Nice knowledge gaining article. This post is really the best on this valuable topic. lifestyleovy blog
xoheko1229 · 17 weeks and 4 days ago
I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. teakovy zahradny nabytok
xoheko1229 · 17 weeks and 4 days ago
Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here. Nieuwsfoto
xoheko1229 · 17 weeks and 2 days ago
Great content material and great layout. Your website deserves all of the positive feedback it’s been getting. ??????
xoheko1229 · 17 weeks and 2 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. body visualizer
xoheko1229 · 17 weeks ago
This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again. free keto diet plan for beginners
xoheko1229 · 17 weeks ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. resume format
xoheko1229 · 14 weeks and 4 days ago
This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works. introverts definition
xoheko1229 · 14 weeks and 1 day ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. sample dcf model
xoheko1229 · 13 weeks and 6 days ago
This is highly information, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things. denver to vail limo
xoheko1229 · 13 weeks and 2 days ago
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. All-Terrain Electric Wheelchair
xoheko1229 · 13 weeks ago
Impressive web site, Distinguished feedback that I can tackle. I am moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards. iphone tips
xoheko1229 · 12 weeks and 2 days ago
Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here. perfect health
xoheko1229 · 11 weeks and 6 days ago
I would like to say that this blog really convinced me to do it! Thanks, very good post. young australian mines
xoheko1229 · 11 weeks and 4 days ago
If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you. learn here
xoheko1229 · 11 weeks and 2 days ago
Thanks you very much for sharing these links. Will definitely check this out.. cancun all inclusive resorts
xoheko1229 · 10 weeks and 6 days ago
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. grow bags online
xolabemo · 8 weeks and 5 days ago
Great post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article. Blogging Unplugged
xolabemo · 8 weeks and 4 days ago
Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. modern bedroom furniture
xolabemo · 7 weeks and 5 days ago
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.. ????
xolabemo · 7 weeks and 4 days ago
Nice knowledge gaining article. This post is really the best on this valuable topic. www.hopedalepreschool.org
xolabemo · 7 weeks ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. Wall Arts
xolabemo · 6 weeks and 6 days ago
Great content material and great layout. Your website deserves all of the positive feedback it’s been getting. www.myloweslifes.net
xolabemo · 6 weeks and 5 days ago
Hi! Thanks for the great information you have provided! You have touched on crucuial points!????? https://disneymonstroussummer.com
johnb6174 · 6 weeks and 4 days ago
Please let me know if you’re looking for a article writer for your site. You have some really great posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some material for your blog in exchange for a link back to mine. Please send me an email if interested. Thank you! forex education
xolabemo · 6 weeks and 3 days ago
Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. qualitative backlinks kaufen
xolabemo · 6 weeks ago
I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me. Chattanooga Cabinets
xolabemo · 6 weeks ago
Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. Web Communication Tools
xolabemo · 5 weeks and 6 days ago
hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. Cherada
xolabemo · 5 weeks and 5 days ago
I read that Post and got it fine and informative. Cherada
xolabemo · 5 weeks and 5 days ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. ????
xolabemo · 5 weeks ago
An fascinating discussion is value comment. I think that it is best to write extra on this matter, it won’t be a taboo topic however generally people are not enough to talk on such topics. To the next. Cheers concrete sawing and removal Idaho
xolabemo · 4 weeks and 6 days ago
I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me.custom laptop brands
xolabemo · 4 weeks and 4 days ago
I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, i am always look for people to check out my web site. Obryant Locksmith
xolabemo · 4 weeks and 4 days ago
I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. roofing repairs
xolabemo · 4 weeks and 4 days ago
It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing. sofa and love chair cleaning
xolabemo · 4 weeks and 4 days ago
This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works. Excellent Embroidery Digitizing
xolabemo · 4 weeks and 2 days ago
Exactly, you're very kind of us about comment!. excellentdigitizing.com
xolabemo · 4 weeks and 2 days ago
Love what you're doing here guys, keep it up!.. Digital marketing Los Angeles
xolabemo · 4 weeks and 1 day ago
I love the way you write and share your niche! Very interesting and different! Keep it coming! broker reviews
xolabemo · 4 weeks ago
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work forex brokers
xolabemo · 4 weeks ago
I read that Post and got it fine and informative. custom patch maker
xolabemo · 3 weeks and 6 days ago
Thank you for taking the time to publish this information very useful! https://dkhcontracting.com/
xolabemo · 3 weeks and 3 days ago
Impressive web site, Distinguished feedback that I can tackle. I am moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards. ??? ????
xolabemo · 3 weeks ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. rent a car beograd
xolabemo · 3 weeks ago
I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!. local business support
xolabemo · 1 week and 6 days ago
Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging, immigration" rel="nofollow">http://www.appnanahacks.com/why-should-i-hire-an-immigration-attorney/'>immigration attorney
xolabemo · 1 week and 6 days ago
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work immigration" rel="nofollow">http://www.authorstream.com/uslegalvisa/'>immigration lawyer
xolabemo · 1 week and 5 days ago
Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging, abogado de inmigracion
xolabemo · 1 week and 5 days ago
Thanks so much for this information. I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint. best hotels in cancun
xolabemo · 6 days ago
Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! www.topjuicer.org
xolabemo · 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: