Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.
Hide

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:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Clear filesystem memory cache

Terminal - Clear filesystem memory cache
sysctl -w vm.drop_caches=3
2011-10-18 18:23:38
User: sanidhya_k
Functions: sysctl
1
Clear filesystem memory cache

Alternatives

There are 4 alternatives - vote for the best!

Terminal - Alternatives
sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
sync; echo 3 > /proc/sys/vm/drop_caches
sudo sync && sudo echo 3 | sudo tee /proc/sys/vm/drop_caches
2012-03-17 08:27:58
User: StephenJudge
Functions: echo sudo sync tee
Tags: memory cache
-1

"That's it. Not much to see here. The first command writes any cache data that hasn't been written to the disk out to the disk. The second command tells the kernel to drop what's cached. Not much to it. This invalidates the write cache as well as the read cache, which is why we have the sync command first. Supposedly, it is possible to have some cached write data never make it to disk, so use it with caution, and NEVER do it on a production server. You could ... but why take the risk?

As long as you are running a post 2.6.16 kernel,..."

Source: http://ubuntuforums.org/showpost.php?p=3621283&postcount=1

free && sync && echo 3 > /proc/sys/vm/drop_caches && free
echo 3 > /proc/sys/vm/drop_caches

Know a better way?

If you can do better, submit your command here.

What others think

We are one of the best companies in China which http://www.breitlingwatchesuk.org.uk/ in exporting worldwide all brand http://www.usarmygermany.com/postinfo.asp like Rolex, Breitling, Cartier, Louis Vuitton, Audemars Piguet Royal Oak Carbon http://www.nanwatches.org/. All of the replica watches are crafted to meet the exact specifications of the original designs. You don't need to worry about the quality of our products, all the http://www.watchesreplica2m.com/ we supply were designed with the greatest detail and craftsmanship and we ensure all the http://www.replicawatchesukshop.co.uk/ not only like the originals but also the weight and dimensions are measured to be as accurate as possible. What's more, we only worked with the reliable and fine replica manufactures who dedicated in making the http://www.watchesshopsuk.co.uk/ to cater to our clients' requirements both in original design and material.

Comment by yanzhongr5 42 weeks and 5 days ago

http://www.oakleysunglasses.gr.com

http://www.louis-vuittonoutlet.cc

http://www.nikeairforce1.in.net

http://www.jordanoutlet.us.com

http://www.christianlouboutinoutlet.com

http://www.louisvuittonoutlettrade.us.com

http://www.michaelkors.me.uk

http://www.calvinklein.co.com

http://www.michaelkorsbagsuk.co.uk

http://www.pradaoutletonline.us.com

http://www.hollister-outlet.org

http://www.christianlouboutin-paris.fr

http://www.oakleysunglassescanada.ca

http://www.adidasyeezy-boost350v2.us.com

http://www.mlbjerseys.org

http://www.michaelkorshandbag.us

http://www.cheapraybansunglasses.net.co

http://www.truereligion.net.co

http://www.hermes.me.uk

http://www.michael-korsbags.us.org

http://www.ed-hardy.us.org

http://www.oakleysunglasses-outlet.us.org

http://www.burberryhandbagsoutlet.in.net

http://www.oakleys.com.co

http://www.mlbjerseyswholesale.us.com

http://www.louisvuittonoutletbuy.us.com

http://www.timberlandboots.org.uk

http://www.eccoshoes.in.net

http://www.mizunorunningshoes.us.com

http://www.ferragamooutlet.us.com

http://www.longchamp-outlet.us.org

http://www.kobe12shoes.us.com

http://www.pandoraoutlet.us.org

http://www.poloralphlaurenuk.uk

http://www.levisjeans.us.com

http://www.ralphlaurenukofficial.org.uk

http://www.instyler.in.net

http://www.ralphlaurenoutletofficial.us.com

http://www.birkenstockoutlet.us.com

http://www.montblanc-pen.name

http://www.oakley-sunglasses.net.co

http://www.vansshoesoutlet.us.com

http://www.coachoutletofficial.us.com

http://www.raybanwayfarer.com.co

http://www.maccosmetics.us.org

http://www.ralphlaurenpolo.in.net

http://www.truereligion-jeans.com.co

http://www.sunglassesoakley.com.co

http://www.fitflopssaleuk.org.uk

http://www.adidas-nmdr1.us.com

http://www.nba-jerseys.us.com

http://www.thenorthface.net.co

http://www.rayban-sunglasses.com.co

http://www.lecoqsportifshoes.us.com

http://www.christianlouboutin.me.uk

http://www.longchamp.us.com

http://www.adidasyeezyboost350v2.in.net

http://www.outletpoloralphlauren.us.com

http://www.michaelkorsoutletclearance.us.org

http://www.nikehuarache.in.net

http://www.niketrainers.uk

http://www.jordanshoes.us.org

http://www.coachfactoryoutletonlinesale.us.com

http://www.michaelkorsoutletcanada.com.co

http://www.jordans.in.net

http://www.ray-ban-sunglasses.com.co

http://www.adidastrainersuk.co.uk

http://www.adidasfootballboots.me.uk

http://www.cheap-mlb-jerseys.us.com

http://www.adidasyeezy350.us.com

http://www.raybansunglasses.nom.co

http://www.lebron13shoes.com

http://www.coach-factoryonline.us.org

http://www.converseshoes.us.org

http://www.nikeroshe.org.uk

http://www.louboutinoutlets.us.com

http://www.adidasoutletstore.net

http://www.oakleysunglassesoutletwholesale.us.com

http://www.adidassuperstar.name

http://www.ralphlauren.eu.com

http://www.nikeairmax2017.org

http://www.asics.in.net

http://www.reebokshoesoutlet.us.com

http://www.toryburchoutlet.net.co

http://www.burberryoutlet-sale.name

http://www.officialcoachoutletonline.us.com

http://www.fitflops.org

http://www.adidasyeezy-boost350v2.us

http://www.louis-vuittonoutlet.net.co

http://www.pradahandbagsoutlet.us.com

http://www.michaelkors-outlet.nom.co

http://www.replica-watches.us.com

http://www.edhardyclothing.in.net

http://www.nike-airmax.me.uk

http://www.cheap-jordans.us.com

http://www.manchesterunitedjersey.co.uk

http://www.giuseppe-zanotti.us.com

http://www.raybansunglassess.com.co

http://www.raybanpascher.fr

http://www.coachoutletcheap.us.com

http://www.outletlongchamp.us.org

http://www.fitflops.us.com

http://www.ralphlaurenoutlet.nom.co

http://www.adidas-neo.us.com

http://www.wholesalecheapsnapbacks.us.com

http://www.toryburchoutletonline.us.org

http://www.northface.us.com

http://www.adidaszxflux.org.uk

http://www.outletcoachfactory.us.com

http://www.coachoutlet-online-store.com

http://www.ray-banssunglasses.com.co

http://www.coachfactoryoutletonlineofficial.us.com

http://www.raybansunglasses.me.uk

http://www.christianlouboutin.name

http://www.cheapnfljerseys-wholesale.us.com

http://www.longchamp-handbags.us.org

http://www.michaelkorsoutletstores.us.org

http://www.adidas.in.net

http://www.handbags-michaelkors.us.com

http://www.nikeoutlet-online.com

http://www.coachoutletstoreonline.us

http://www.stansmith.us.com

http://www.coachoutletpurses.us.com

http://www.nikeblazers.in.net

http://www.tomsoutletonline.us.com

http://www.adidasshoes.in.net

http://www.michaelkors--outlet.us.org

http://www.cheap-jordan-shoes.us.com

http://www.tomsoutlet.org

http://www.michaelkorstotebags.us.com

http://www.truereligionsale.com.co

http://www.pandoracharms.us.org

http://www.ponyshoes.us.com

http://www.adidas-nmd.co.uk

http://www.adidasyeezy-boost.us.com

http://www.ysl-handbags.us.com

http://www.timberlandoutlet.name

http://www.michaelkorshandbagsuk.uk

http://www.mcm.us.org

http://www.filashoes.us.com

http://www.raybanssunglassesuk.co.uk

http://www.tomsuk.org.uk

http://www.michaelkors--outlet.us.com

http://www.michaelkorsoultet.us.com

http://www.katespade-outlet.net.co

http://www.montblanc.com.co

http://www.adidasukoriginals.org.uk

http://www.true-religion.me.uk

http://www.columbiashoes.us.com

http://www.nikeoutletstore.us.com

http://www.rayban.org.uk

http://www.nikehuarache.me.uk

http://www.hermes.in.net

http://www.burberryhandbags.in.net

http://www.katespade.nom.co

http://www.beatsbydrdre.co.com

http://www.truereligionjeans-outlet.us.com

http://www.polooutlet.net.co

http://www.adidas-ultraboost.com

http://www.adidas-nmdshoes.us.com

http://www.michael-kors-handbags.us.org

http://www.michaelkorsbags.in.net

http://www.authenticcoachfactoryoutletonline.us.com

http://www.lebronjamesshoes14.us

http://www.oakleyssunglasseswholesale.us.com

http://www.true-religionjeans.us.org

http://www.omegawatches.us.com

http://www.christianlouboutinonlineoutlet.us.com

http://www.coachhandbags-onlineoutlet.us.com

http://www.fitflopssaleclearance.us.org

http://www.nhlhockey-jerseys.us.com

http://www.michael-kors--handbags.com

http://oakley.sunglassesonline.us.com

http://www.redbottoms.me.uk

http://www.coachhandbags.cc

http://www.oakleyssunglasses.com.co

http://www.birkenstocksandals.org

http://www.outletmcm.us

http://www.fitflops.us.org

http://www.poloralphlauren-outlet.com

http://www.nikerunning.org.uk

http://www.cheapraybans.ca

http://www.burberryoutlet-online.net.co

http://www.valentinoshoes-outlet.us.com

http://www.michaelkorsuk.com.co

http://www.michaelkors--outlet.com.co

http://www.nikefreerun.us.com

http://www.nikecortez.org

http://www.aididasyeezy.org.uk

http://www.adidassoccershoes.us

http://www.oakleysunglasses-outlet.com.co

http://www.coachoutletsclearance.us.com

http://www.new-balanceshoes.us.com

http://www.coachoutletstoreonlineofficial.us.com

http://www.louisvuittonbelt.us.com

http://www.rosherun.org

http://www.vibramfivefingers.in.net

http://www.nikeairmax2016.in.net

http://www.converse.in.net

http://www.reebok-shoes.us.com

http://www.michaelkorsus.us.com

http://www.airmaxuk.uk

http://www.montblancpenofficial.us.com

http://www.coachcanadaoutlet.com.co

http://www.suprashoes.in.net

http://www.nikesoccershoes.us.com

http://www.cheapjordansshoes.in.net

http://www.vansshoes.us.org

http://www.adidasoriginalsshoes.in.net

http://www.underarmour.in.net

http://www.nikeoutletstores.us.com

http://www.coachfactoryoutletstore-online.us.com

http://www.outlet-toms.cc

http://www.lecoqsportifchaussures.fr

http://www.pandorajewelryoutlet.us.org

http://www.raybanssunglasses.com.co

http://www.prada.us.org

http://www.leejeans.us.com

http://www.nikeairmaxuk.me.uk

http://www.raybansunglassesoutlet.net.co

http://www.adidastrainers.uk

http://www.ralphlauren-polooutlet.us.com

http://www.nike-rosherun.in.net

http://www.columbiasportswear.in.net

http://www.michaelkorsoutletonlinesale.us.com

http://www.hermeshandbags.us.com

http://www.christianlouboutinoutletusa.us.com

http://www.birkenstock.us.org

http://www.katespadeoutlets.us.org

http://www.toms.us.org

http://www.nikeroshe.us.com

http://www.catboots.us.com

http://www.pandorajewelryuk.me.uk

http://www.louboutinparis.fr

http://www.chelseajersey.org.uk

http://www.pumashoes.us.com

http://www.pandorajewelry.in.net

http://www.outletralphlaurenpolo.us.com

http://www.adidas-nmdxr1.us.com

http://www.tiffanyco.nom.co

http://www.nikeairmaxshoes.us.com

http://www.michaelkorsoutletsale.us.org

http://www.cheapoakleysunglasses.net.co

http://www.raybansonsale.com.co

http://www.christianlouboutinoff.us

http://www.michaelkorsonlineoutlet.us.org

http://www.mbt.us.com

http://www.kevindurant9shoes.org

http://www.truereligionoutlet.eu

http://www.oakleysunglassess.com.co

http://www.michaelkorsoutletonline.us.org

http://www.raybanssunglasses.org

http://www.nfl-jerseys.in.net

http://www.nikesb.us

http://www.adidasstansmith.org.uk

http://www.guccishoes.net.co

http://www.fredperrypoloshirts.us.com

http://www.nikestore.me.uk

http://www.nikefootballboots.org.uk

http://www.manoloblahnik.us

http://www.cheapnhljersey.us.com

http://www.cheapjordansshoes.us.com

http://www.tomsshoes.nom.co

http://www.poloralphlauren--outlet.us.com

http://www.oakleystore.com.co

http://www.parkerpens.us.com

http://www.ralphlaurenuk.uk

2017.3.23xukaimin

Comment by xukaimin 30 weeks and 4 days ago

Your point of view

You must be signed in to comment.