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 Cached Memory on Ubuntu

Terminal - Clear Cached Memory on Ubuntu
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
-1
Clear Cached Memory on Ubuntu

"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

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
sync; echo 3 > /proc/sys/vm/drop_caches
sysctl -w vm.drop_caches=3
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

Funny trick, but yes never use it on any prod machine. There can be so much set in cache between the two commands, that it looks like naked free fall.

Comment by makidoko 291 weeks and 2 days ago

drop_caches doesn't drop READ/WRITE-requests. only cached information.

SYNC as well as echoing into DROP_CACHES is non-destructive

Comment by Syntaxerror 150 weeks and 4 days ago

This is one of the cult game now, a lot of people enjoy playing them . Also you can refer to the game :

http://animaljam-2.com/">animal jam 2 | http://fivenightsatfreddys-2.com/">five nights at freddys 2 | http://hotmailemaillogin.net">hotmail login

Comment by candysim 34 weeks and 3 days ago

http://www.michaelkors-handbags.in.net

http://www.canadagoosejacketssale.us.com

http://www.cheapraybans-sunglasses.us.com

http://www.michaelkorsoutletofficials.us.com

http://www.christian-louboutinoutlet.us.org

http://www.christianlouboutin.com.co

http://www.ralphlaurenpoloshirts.me.uk

http://www.lacosteoutlet.us.org

http://www.adidasshoes.us.org

http://www.coachfactoryoutletonlinestores.us.com

http://www.ralph-laurenpolooutlet.us.com

http://www.mont-blancpens.us.com

http://www.michaelkorsoutletclearancee.us.com

http://www.fitflopsaleclearance.us.com

http://www.polooutlet.name

http://www.coachfactoryoutletofficials.us.com

http://www.raybansunglassesformen.us.com

http://www.mbtshoesoutlets.us.com

http://www.oakley-sunglassesoutletonline.us.com

http://www.nikeshoes.com.co

http://www.cheapuggboots.name

http://www.cheapuggboots.org

http://www.raybansun-glasses.com.co

http://www.fredperry.org.uk

http://www.ralphlaurenpolo-uk.org.uk

http://www.valentinooutlet.in.net

http://www.polooutletralphlauren.us.com

http://www.oakleysunglasseswholesaler.us.com

http://www.montblancpensoutlet.com

http://www.ralphlauren-polo.me.uk

http://www.yeezyboost350-v2.us.com

http://www.mcmoutletonline.us

http://raybansunglasses.co-sunglasses.com

http://nikeshoes.nike-com.com

http://www.oakley-sunglassesclearance.us.com

http://www.truereligionjeanss.us.com

http://www.pandoraoutlets.us.com

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

http://www.lunetterayban.fr

http://www.airjordan4.us

http://www.canadagooseoutlet-store.com.co

http://www.adidasnmd-r1.us.com

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

http://www.mlbjerseys.net

http://www.adidasyeezyshoes.name

http://www.poloralphlaurenfactorystore.us.com

http://www.cheapjordans.name

http://www.edhardyclothing.us.com

http://www.michaelkorsoutletclearancehandbags.us.com

http://www.polo-ralphlaurenuk.me.uk

http://www.fitflops-saleclearance.us

http://www.cheapmlb-jerseys.us

http://www.nikeshoesoutlet.us.com

http://polooutlet.amegov.com

http://www.katespadeshandbags.us

http://www.ralphlauren-outletuk.org.uk

http://www.canadagoose.name

http://www.ralph-laurenoutletuk.me.uk

http://www.ralphlaurenoutlets.org.uk

http://www.michaelkorsoutlet-online.in.net

http://www.fredperrypoloshirts.co.uk

http://www.kate-spadeoutlet.us.org

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

http://www.truereligion-outletstore.us.com

http://www.polo-ralphlauren-pascher.fr

http://www.poloralphlauren-uk.me.uk

http://www.mbtshoescheap.us.com

http://www.pradaoutletstore.us

http://www.pradaoutlet-store.us.com

http://poloralphlauren.amegov.com

http://www.true-religionoutletstore.us.com

http://www.lebron-jamesshoes.us.com

http://www.cheapuggs.name

http://www.michaelkorsoutlet-clearance.org

http://www.oakleysunglasseswholesales.us.com

http://www.michaelkorsoutlet-clearances.us.com

http://adidasyeezyshoes.adidassale.net

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

http://www.katespadeoutlet-store.us.com

http://www.longchampoutlet.us.org

http://www.nikeoutlet.com.co

http://www.oakleysunglasseswholesalee.us.com

http://www.oakleysunglassescheaps.us.com

http://www.fredperryoutlet.us.com

http://www.longchampoutletofficial.us.com

http://www.coachfactory-outlet.eu.com

http://www.adidasoutlet.com.co

http://www.asicsrunningshoes.us.com

http://www.coach-outletonlineclearance.us.com

http://www.christianlouboutin-uk.org.uk

http://www.oakleysunglassesformen.us.com

http://www.nhljerseyss.us.com

http://cheapraybansunglasses.co-sunglasses.com

http://www.coachfactoryoutletmiami.us.com

http://www.coachoutletcoachoutletstore.us.com

http://www.adidasoutlet.us.org

http://www.cheapjordansfor-sale.us.com

http://www.michaelkorsoutletofficial.com

http://www.hermesbeltsoutlet.us.com

http://www.pandoraoutletstore.us.com

http://www.michaelkorsoutlet-clearance.us

http://www.ralphlauren-shirts.org.uk

http://www.ralphlaurenoutletonlinestore.us.com

http://www.ralphlaurenofficial.us.com

http://www.michael-korshandbags.in.net

http://www.michaelkorsoutletonlinestore.us.org

http://www.oakleysunglassesfactory.us.com

http://www.polooutlet.us.org

http://www.raybanssun-glasses.com.co

http://www.coachoutletonlinecoachfactoryoutlets.us.com

http://www.michaelkorssoutletclearance.us.com

http://www.poloralphlauren-uk.org.uk

http://nikeshoes.up-nike.com

http://www.poloralph-laurenuk.co.uk

http://www.michael-korsoutletstore.in.net

http://www.coachfactoryoutlet-coachoutlet.us.com

http://www.canadagoosejacketss.com.co

http://www.christian-louboutinshoes.us

http://www.coach-outletonlinecoachfactoryoutlet.us.com

http://www.cheapnfljerseys.eu.com

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

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

http://www.nike-shoes.us.org

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

http://www.ralph-laurenpolo.us.org

http://www.raybansunglassesonsale90off.us.com

http://www.fitflopssaleclearance.name

http://www.coachoutletcoachfactoryoutlets.us.com

http://www.airjordan.us.org

http://www.canadagoose-outlets.com.co

http://raybansunglassesoutlet.co-sunglasses.com

http://www.uggoutlet.name

http://www.oakleysunglassesss.us.com

http://www.canadagooses.com.co

http://www.ralphlaurenshirts.me.uk

http://www.michaelkorsoutlet-clearance.com

http://www.cheapjordans-forsale.us.com

http://www.oakleysunglasseswholesaleonline.us.com

http://www.coachoutletonlinecoachfactoryoutlet.com.co

http://www.kate-spadeoutletstore.us.com

http://www.nbajerseyss.us.com

http://yeezyboost.adidassale.net

http://www.nikeoutletstorelocations.com

http://www.montblancpenss.com.co

http://www.pandorajewelrycharms.us.com

http://www.mulberryhandbagsuk.co.uk

http://www.hermesbirkins.us.com

http://www.coachoutlet-clearance.us.org

chenlili20170503

Comment by chenyingying 23 weeks and 5 days ago

Adidas http://www.huaracherunpas-cher.fr/nike-huarache-pour-femme_155.html is a that's most respected http://www.huaracherunpas-cher.fr/nike-huarache-prix_66.html with regard to creation a http://www.huaracherunpas-cher.fr/nike-air-huarache-prix_120.html variety of http://www.huaracherunpas-cher.fr/huarache-5_74.html sporting activities extras including http://www.huaracherunpas-cher.fr/chaussures-huarache-nike_152.html course matches to shoes. It is just http://www.huaracherunpas-cher.fr/nike-huarache-fille_148.html a company http://www.huaracherunpas-cher.fr/huarache-bordeaux_53.html that's desired by persons across http://www.huaracherunpas-cher.fr/nike-huarache-light-ultramarine_171.html the world. Additionally, players http://www.huaracherunpas-cher.fr/nike-huarache-paris_69.html and athletes manipulate http://www.huaracherunpas-cher.fr/huarache-light-og_105.html Adidas solutions from http://www.huaracherunpas-cher.fr/air-huarache-blanc_123.html the time that the http://www.huaracherunpas-cher.fr/nike-air-huarache-turquoise_160.html idea created a indicate in http://www.huaracherunpas-cher.fr/air-max-huarache_39.html the market. A short while http://www.huaracherunpas-cher.fr/huarache-2017_99.html ago, as http://www.huaracherunpas-cher.fr/nike-huarache-boutique_147.html a result of the advent involving http://www.huaracherunpas-cher.fr/nike-huarache-free-run-pas-cher_156.html e-commerce, Adidas goods http://www.huaracherunpas-cher.fr/huarache-og_183.html are easily obtainable in http://www.huaracherunpas-cher.fr/huarache-acheter_83.html online retailers. The good http://www.huaracherunpas-cher.fr/nike-huarache_93.html thing about the http://www.huaracherunpas-cher.fr/boutique-nike-huarache_151.html items is their affordability. Price http://www.huaracherunpas-cher.fr/huarache-enfant_62.html reduction Adidas can be http://www.huaracherunpas-cher.fr/nike-huarache-blanc_85.html found online using value http://www.huaracherunpas-cher.fr/nike-air-huarache-homme_150.html cuts which are not on local http://www.huaracherunpas-cher.fr/huarache-vintage_42.html stores. http://www.huaracherunpas-cher.fr/nike-air-huarache-mid_78.html Therefore, if you need to own a http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine-og_75.html pair http://www.huaracherunpas-cher.fr/chaussures-air-huarache_128.html connected with Adidas shoes, you ought to http://www.huaracherunpas-cher.fr/huarache-nike-blanche_127.html search the web.The http://www.huaracherunpas-cher.fr/nike-huarache-usa_114.html undeniable fact that the actual http://www.huaracherunpas-cher.fr/nike-air-max-huarache-hybrid_121.html visual http://www.huaracherunpas-cher.fr/nike-air-huarache-1991_65.html appeal and unmatched ease Adidas http://www.huaracherunpas-cher.fr/nike-air-flight-huarache_102.html work most effectively is sturdy by http://www.huaracherunpas-cher.fr/nike-huarache-marron_165.html some http://www.huaracherunpas-cher.fr/nike-air-force-huarache_124.html of the finest athletes on this http://www.huaracherunpas-cher.fr/nike-huarache-rouge_81.html planet such as Maradona, http://www.huaracherunpas-cher.fr/nike-air-huarache-og_162.html Pele in addition to Zidane http://www.huaracherunpas-cher.fr/nike-air-huarache-solde_181.html given that they have http://www.huaracherunpas-cher.fr/huarache-nike-chaussures_131.html always carried http://www.huaracherunpas-cher.fr/nike-air-huarache-chaussures_80.html Adidas items. Why is the http://www.huaracherunpas-cher.fr/air-huarache-light_139.html items unique http://www.huaracherunpas-cher.fr/huarache-usa_100.html will be the increased http://www.huaracherunpas-cher.fr/huarache-free-run_145.html comfort and ease. Your trademarks http://www.huaracherunpas-cher.fr/huarache-beige_106.html regarding Adidas are light weight, http://www.huaracherunpas-cher.fr/nike-huarache-free-run-2012_146.html freedom, balance http://www.huaracherunpas-cher.fr/nike-air-huarache-run-pas-cher_98.html and magnificence. Every single Adidas method manufactured http://www.huaracherunpas-cher.fr/nike-air-huarache-2_92.html in an http://www.huaracherunpas-cher.fr/air-huarache-grise_142.html attempt to observe strikes. http://www.huaracherunpas-cher.fr/huarache-og-2017_143.html With Low cost Adidas available today http://www.huaracherunpas-cher.fr/basket-nike-huarache_45.html online, you can http://www.huaracherunpas-cher.fr/huarache-bleu_111.html find the items from http://www.huaracherunpas-cher.fr/air-huarache-nike_87.html fantastic costs.The design connected http://www.huaracherunpas-cher.fr/huarache-noir-et-blanc_96.html with Adidas solutions is definitely http://www.huaracherunpas-cher.fr/nikeair-huarache_88.html treasured. The http://www.huaracherunpas-cher.fr/nike-huarache-premium_126.html quality of they means they are http://www.huaracherunpas-cher.fr/air-huarache-femme_90.html definitely worth the http://www.huaracherunpas-cher.fr/nike-air-force-1-huarache_113.html get devoid of discount http://www.huaracherunpas-cher.fr/nike-huarache-beige_91.html rates also. Each one of http://www.huaracherunpas-cher.fr/nike-air-huarache-noir_97.html these products is surely http://www.huaracherunpas-cher.fr/chaussure-air-huarache_180.html an http://www.huaracherunpas-cher.fr/free-huarache_103.html invention and offers a new challenge http://www.huaracherunpas-cher.fr/nike-huarache-violet_54.html to consumers. However, while http://www.huaracherunpas-cher.fr/huarache-leopard_77.html you are on offer discounted http://www.huaracherunpas-cher.fr/huarache-noir-et-rose_109.html Adidas why not make http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-bleu_130.html good use http://www.huaracherunpas-cher.fr/air-huarache-og_71.html from the opportunity as well http://www.huaracherunpas-cher.fr/nike-huarache-jd_46.html as take http://www.huaracherunpas-cher.fr/nike-air-huarache-light_168.html hold of and this searching http://www.huaracherunpas-cher.fr/nike-air-huarache-safari_73.html goods at slashed http://www.huaracherunpas-cher.fr/nike-huarache-magenta_51.html charges?So, how will you http://www.huaracherunpas-cher.fr/air-huarache-solde_40.html select the right price reduction http://www.huaracherunpas-cher.fr/nike-air-huarache-bleu_167.html Adidas web store http://www.huaracherunpas-cher.fr/chaussure-nike-air-huarache_76.html ?There are possibilities http://www.huaracherunpas-cher.fr/ that you have plus some merchants http://www.huaracherunpas-cher.fr/nike-huarache-femme-pas-cher_140.html are really http://www.huaracherunpas-cher.fr/nike-air-zoom-huarache_89.html a lot better than one http://www.huaracherunpas-cher.fr/air-flight-huarache_68.html other. All you need is efforts http://www.huaracherunpas-cher.fr/nike-air-huarache-original_144.html and proceed through http://www.huaracherunpas-cher.fr/huarache-femmes_170.html a variety of low http://www.huaracherunpas-cher.fr/air-nike-huarache_107.html cost Adidas provides http://www.huaracherunpas-cher.fr/nike-id-huarache_158.html in addition to retailers. You http://www.huaracherunpas-cher.fr/air-huarache-noir_116.html can begin start http://www.huaracherunpas-cher.fr/huarache-montante_179.html by making an index of a http://www.huaracherunpas-cher.fr/air-huarache-noire_117.html couple http://www.huaracherunpas-cher.fr/nike-huarache-gris_59.html of beneficial retailers in http://www.huaracherunpas-cher.fr/nike-air-huarache-rouge_47.html which advertise lower price http://www.huaracherunpas-cher.fr/nike-huarache-free-light_134.html Adidas and then go on http://www.huaracherunpas-cher.fr/nike-air-huarache-blanc_41.html to review the actual http://www.huaracherunpas-cher.fr/nike-huarache-1991_55.html reductions together. Several shops http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-rose_58.html supply you with approximately 45% http://www.huaracherunpas-cher.fr/nike-air-huarache-pas-chere_161.html discounts upon these items. Special http://www.huaracherunpas-cher.fr/nike-air-huarache-og-retro_101.html discounts http://www.huaracherunpas-cher.fr/nike-air-huarache-beige_112.html can be found in http://www.huaracherunpas-cher.fr/achat-nike-huarache_137.html most leading merchandise including http://www.huaracherunpas-cher.fr/nike-huarache-toute-noir_154.html shoes, totes, socks, leg http://www.huaracherunpas-cher.fr/huarache-4_118.html pads, football shorts, pants, ladies http://www.huaracherunpas-cher.fr/nike-huarache-taille_49.html fish tank surfaces http://www.huaracherunpas-cher.fr/huarache-noir_86.html , tennis trousers, joggers along with http://www.huaracherunpas-cher.fr/chaussure-huarache-nike_173.html jackets. You will have http://www.huaracherunpas-cher.fr/nike-huarache-light-og_115.html a terrific time evaluating http://www.huaracherunpas-cher.fr/nike-huarache-run_72.html these shops as well as http://www.huaracherunpas-cher.fr/nike-huarache-3_108.html comparing special discounts. Nonetheless, make http://www.huaracherunpas-cher.fr/nike-air-huarache-90_110.html certain you http://www.huaracherunpas-cher.fr/huarache-nike-noir_149.html order from an outlet http://www.huaracherunpas-cher.fr/nike-air-huarache-run_43.html that is the licensed retailer http://www.huaracherunpas-cher.fr/huarache-run_132.html involving Adidas products. http://www.huaracherunpas-cher.fr/huarache-light_50.html This particular makes certain that http://www.huaracherunpas-cher.fr/nike-huarache-chaussures_129.html lower price Adidas http://www.huaracherunpas-cher.fr/nike-huarache-homme_141.html is actually authentic.Another http://www.huaracherunpas-cher.fr/nike-air-huarache-retro_70.html model of shoes containing built http://www.huaracherunpas-cher.fr/nike-air-huarache-light-pas-cher_44.html swells in the shoe industry is http://www.huaracherunpas-cher.fr/huarache-air-max_163.html Trucks. http://www.huaracherunpas-cher.fr/nike-air-huarache-international_104.html These shoes are hugely http://www.huaracherunpas-cher.fr/huarache-noir-femme_60.html stylish then one connected with http://www.huaracherunpas-cher.fr/nike-huarache-run-pas-cher_61.html The favorite. The particular http://www.huaracherunpas-cher.fr/nike-air-huarache-run-chaussures_174.html vast single of http://www.huaracherunpas-cher.fr/nike-air-flight-huarache-og_48.html those shoes could be the hallmark. http://www.huaracherunpas-cher.fr/nike-huarache-2_166.html It's something which provides style http://www.huaracherunpas-cher.fr/acheter-huarache_84.html and helps make http://www.huaracherunpas-cher.fr/nike-huarache-solde_94.html trucks shoes http://www.huaracherunpas-cher.fr/nike-huarache-2013_159.html really cozy. These types of http://www.huaracherunpas-cher.fr/chaussures-huarache_56.html shoes are offered also regarding http://www.huaracherunpas-cher.fr/nike-huarache-id_164.html unique prices http://www.huaracherunpas-cher.fr/basket-huarache_63.html when you buy on the http://www.huaracherunpas-cher.fr/nouvelle-nike-huarache_82.html internet. You may get http://www.huaracherunpas-cher.fr/air-huarache-paris_138.html around 40% off in these http://www.huaracherunpas-cher.fr/huarache-chaussure_122.html items.Vans shoes http://www.huaracherunpas-cher.fr/nike-air-huarache-blanche_153.html can be found in different colors, models http://www.huaracherunpas-cher.fr/nike-huarache-leopard_57.html and shapes, with http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine_64.html some other models males http://www.huaracherunpas-cher.fr/nike-huarache-agassi_133.html and females. http://www.huaracherunpas-cher.fr/nike-air-huarache-taille_172.html They look extremely peppy and http://www.huaracherunpas-cher.fr/huarache-instagram_169.html trendy, that is http://www.huaracherunpas-cher.fr/huarache-chaussures_95.html simply appropriate to the more http://www.huaracherunpas-cher.fr/air-huarache-homme_67.html youthful era. In addition to http://www.huaracherunpas-cher.fr/nike-huarache-ultramarine_125.html Trucks shoes, the manufacturer http://www.huaracherunpas-cher.fr/nike-huarache-safari_52.html furthermore markets http://www.huaracherunpas-cher.fr/huarache-nike-pas-cher_79.html other merchandise including denims, clothes http://www.huaracherunpas-cher.fr/air-huarache-run_157.html , accessories in addition http://www.huaracherunpas-cher.fr/huarrache-blanche_135.html to back packs. Vans shoes can http://www.huaracherunpas-cher.fr/nike-huarache-femmes_182.html be found in suede, synthetic leather as well as canvas models.

Comment by scott154 7 weeks and 4 days ago

Your point of view

You must be signed in to comment.