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 :-)

0
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 · 1 week and 1 day ago
great
emmawattson · 1 week 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 · 4 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 · 3 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 · 2 days ago
Test your abilities with the most exciting game in the world today: Impossible Game
KevinDurant · 5 hours 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: