Clear Cached Memory on Ubuntu

sudo free && sync && sudo echo 3 | sudo tee /proc/sys/vm/drop_caches
Clear Cached Memory on Ubuntu based distributions, and also display memory status. Please do not use this on a production machine unless you really really know what you are doing. Echo 3 is a kinder way of purging the memory, you can also use 'echo 2' or 'echo 1' if #1 You know what you are doing, and #2 refer to number 1 :-)

By: tg0000
2021-09-13 16:45:20

6 Alternatives + Submit Alt

What Others Think

If you want to do this one then here is the steps explained for you. So that it will be very easy for you to look through this and find an easy method in this one. Disney Treats In California
zaiyamariya · 10 weeks and 2 days ago
emmawattson · 10 weeks and 1 day ago
Hi! Have a good day! If you like to play crazy and fun games then I have a good suggestion for you happy wheels unblocked
schroeder · 9 weeks and 5 days ago
Pretty good article. I just stumbled across your blog and enjoyed reading your blog posts. I am looking for new articles to get more valuable information. Big thanks for this. wuxiaworld
minion890h · 9 weeks and 4 days ago
nfl streaming free If you are one of those fans who does not want to miss a minute the sports action that the nfl streams reddit causes, do not worry. We show you below some recommendations so that you can watch reddit nfl streams without problems and that it is totally free.
anime123 · 9 weeks and 3 days ago
Test your abilities with the most exciting game in the world today: Impossible Game
KevinDurant · 9 weeks and 1 day ago
Make it a cron-job. Press Alt-F2 , type gksudo gedit /etc/crontab , and add this line near the bottom: */15 * * * * root sync && echo 3 > /proc/sys/vm/drop_caches. This cleans every 15 minutes. You can set to 1 or 5 minutes if you really want to by changing the first parameter to * or */5 instead of */15. ACES ETM
John65 · 9 weeks ago
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one.
johnlead · 8 weeks and 6 days ago 's Clash of Clans PC version is an interesting game , we should build our clan , we attack other clans and earn money to build clan , we should update our clan , we can invite our friends and play with friends, they can give us anything required, in clan there are town house , archer tower and many , there are many characters like giant , wall breakers , wizard etc our clan should be full of all rower and etc there will be builder they will update our clan I like this game very very much , install and play it and every one will surely love this grow empire: rome | download the pc app from
luciham20 · 8 weeks and 4 days ago
Wonderful information! I found amazing information on the blogs i suggest everyone to follow the links below to get download files from this website. gb whatsapp apk
wick09788 · 7 weeks and 5 days ago
How to Clear Cache in Linux? Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches. Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches. Clear pagecache, dentries, and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches. ... sync will flush the file system buffer. MyBalanceNow
Martin48 · 7 weeks and 4 days ago
How to Clear Cache in Linux? Clear PageCache only. # sync; echo 1 > /proc/sys/vm/drop_caches. Clear dentries and inodes. # sync; echo 2 > /proc/sys/vm/drop_caches. Clear pagecache, dentries, and inodes. # sync; echo 3 > /proc/sys/vm/drop_caches. ... sync will flush the file system buffer. LiteBlue
Warren58 · 7 weeks and 1 day ago
Today Publisher
Katehartley · 5 weeks and 6 days ago
Mori Condo at Guillemard / Jalan Molek By Roxy-Pacific. Get Price, Brochure, Floor Plan, Price List & More. Hotline 61006226.
ramoncrist2021 · 5 weeks and 4 days ago
Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. Yo whatsapp I wanted to thank you for this websites!
wick09788 · 4 weeks and 1 day ago
Great and correct shares are displayed here. Share the great online incremental cookie clicker game shared with all members in this article.
aricjoshua · 1 week and 4 days ago
My computer is very fast full of memory, that's why I can't download the game. I can only play Friday Night Funkin', which is a free online game. Does anyone have a way to get more memory on the computer?
LindaMyler · 3 days ago
You Can Also Download Cracked Software For Windows & Mac. When You Feel Free To Check my Webpage captain chords crack
mastercracked786 · 2 days ago
I love using ubuntu. The best OS. Catering jeddah
saudievents · 1 day 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: