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

gzip over ssh

Terminal - gzip over ssh
ssh 10.0.0.4 "cat /tmp/backup.sql | gzip -c1" | gunzip -c > backup.sql
2010-02-14 19:09:07
User: kennethjor
Functions: gunzip ssh
3
gzip over ssh

I've kept the gzip compression at a low level, but depending on the cpu power available on the source machine you may want to increase it. However, SQL compresses really well, and I found even with -1 I was able to transfer 40 MiB/s over a 100 mbps wire, which was good enough for me.

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
scp -C 10.0.0.4:/tmp/backup.sql /path/to/backup.sql
2010-02-15 12:39:46
User: OJM
Functions: scp
10

-C is for compression.

ssh 10.0.0.4 "gzip -c /tmp/backup.sql" |gunzip > backup.sql
2012-01-06 17:44:06
User: ultips
Functions: gunzip ssh
0

If you have servers on Wide Area Network (WAN), you may experience very long transfer rates due to limited bandwidth and latency.

To speed up you transfers you need to compress the data so you will have less to transfer.

So the solution is to use a compression tools like gzip or bzip or compress before and after the data transfer.

Using ssh "-C" option is not compatible with every ssh version (ssh2 for instance).

Know a better way?

If you can do better, submit your command here.

What others think

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 29 weeks ago

Rocky shoe aren't http://www.huaracherunpas-cher.fr/huarache-og_183.html just regarding http://www.huaracherunpas-cher.fr/nike-huarache-2_166.html tough in addition to http://www.huaracherunpas-cher.fr/nike-air-force-huarache_124.html contact work as well http://www.huaracherunpas-cher.fr/huarache-noir_86.html as army personae, they are also http://www.huaracherunpas-cher.fr/nike-huarache-fille_148.html about comfort http://www.huaracherunpas-cher.fr/huarache-beige_106.html , layout. I think each time http://www.huaracherunpas-cher.fr/nike-huarache-free-run-pas-cher_156.html a lot of http://www.huaracherunpas-cher.fr/nike-air-huarache-bleu_167.html folks suppose the Rugged shoe label http://www.huaracherunpas-cher.fr/chaussures-huarache_56.html , they will quickly think http://www.huaracherunpas-cher.fr/huarache-free-run_145.html of this solid and http://www.huaracherunpas-cher.fr/nike-huarache-gris_59.html sturdy large base http://www.huaracherunpas-cher.fr/nike-id-huarache_158.html shoe or maybe these types of http://www.huaracherunpas-cher.fr/nike-air-huarache-light_168.html sandy coloured http://www.huaracherunpas-cher.fr/air-huarache-homme_67.html suede bad eggs which might be http://www.huaracherunpas-cher.fr/nike-air-huarache-blanc_41.html for http://www.huaracherunpas-cher.fr/air-flight-huarache_68.html combat. Although, Bumpy shoe provides much http://www.huaracherunpas-cher.fr/nike-huarache-agassi_133.html more than that will. http://www.huaracherunpas-cher.fr/nike-huarache-premium_126.html They feature http://www.huaracherunpas-cher.fr/acheter-huarache_84.html a shoe as well as a http://www.huaracherunpas-cher.fr/nike-huarache-light-ultramarine_171.html shoe for everybody in just http://www.huaracherunpas-cher.fr/nike-air-huarache-taille_172.html about every http://www.huaracherunpas-cher.fr/huarache-noir-femme_60.html circumstances -- regardless of what that will http://www.huaracherunpas-cher.fr/nike-huarache-rouge_81.html circumstances http://www.huaracherunpas-cher.fr/huarache-usa_100.html could possibly be. Are you http://www.huaracherunpas-cher.fr/nike-air-flight-huarache_102.html merely wanting for http://www.huaracherunpas-cher.fr/achat-nike-huarache_137.html any comfortable and cool set of http://www.huaracherunpas-cher.fr/nouvelle-nike-huarache_82.html two shoes http://www.huaracherunpas-cher.fr/nike-huarache-light-og_115.html to perform doing errands inside or http://www.huaracherunpas-cher.fr/nike-air-flight-huarache-og_48.html perhaps head over to http://www.huaracherunpas-cher.fr/huarache-nike-pas-cher_79.html supper inside or http://www.huaracherunpas-cher.fr/free-huarache_103.html even check out membership together with. http://www.huaracherunpas-cher.fr/chaussure-nike-air-huarache_76.html Effectively, http://www.huaracherunpas-cher.fr/nike-huarache-1991_55.html crowd what you need http://www.huaracherunpas-cher.fr/nike-huarache-solde_94.html , Rugged shoe has that product without a http://www.huaracherunpas-cher.fr/ doubt these types http://www.huaracherunpas-cher.fr/chaussures-air-huarache_128.html of shoes http://www.huaracherunpas-cher.fr/nike-air-huarache-solde_181.html tend to be absolutely http://www.huaracherunpas-cher.fr/nike-huarache-2013_159.html stunning and intensely stylish! Here http://www.huaracherunpas-cher.fr/huarache-nike-noir_149.html are some that http://www.huaracherunpas-cher.fr/huarache-og-2017_143.html I believe you might http://www.huaracherunpas-cher.fr/huarache-light-og_105.html like to check out!Rocky EuroTraveler http://www.huaracherunpas-cher.fr/air-huarache-run_157.html Slip-On 1042: Bumpy shoe http://www.huaracherunpas-cher.fr/huarache-noir-et-rose_109.html is usually a http://www.huaracherunpas-cher.fr/air-huarache-blanc_123.html well-known and revered maker http://www.huaracherunpas-cher.fr/nike-air-huarache-og-retro_101.html associated with military shoe, http://www.huaracherunpas-cher.fr/nike-huarache-violet_54.html police force shoe, http://www.huaracherunpas-cher.fr/nike-air-huarache-international_104.html tracking shoe, in addition to function http://www.huaracherunpas-cher.fr/huarache-montante_179.html shoe. Considering that http://www.huaracherunpas-cher.fr/huarache-chaussure_122.html 1932 Rocky's top quality provides challenged http://www.huaracherunpas-cher.fr/nike-air-zoom-huarache_89.html the competition http://www.huaracherunpas-cher.fr/nike-air-huarache-og_162.html within the shoe market. These days http://www.huaracherunpas-cher.fr/nike-air-huarache-turquoise_160.html , the Bumpy http://www.huaracherunpas-cher.fr/air-huarache-femme_90.html S2V warm weather http://www.huaracherunpas-cher.fr/huarache-nike-blanche_127.html army shoe sets the standard http://www.huaracherunpas-cher.fr/nike-air-huarache-1991_65.html for modern battle shoe http://www.huaracherunpas-cher.fr/huarache-instagram_169.html along with their http://www.huaracherunpas-cher.fr/huarache-4_118.html do the job and http://www.huaracherunpas-cher.fr/nike-air-huarache-retro_70.html also police shoe comply with this http://www.huaracherunpas-cher.fr/nike-huarache-pour-femme_155.html example.Rocky Yellow-colored Jewel Slip-On http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine_64.html 1045: Colors http://www.huaracherunpas-cher.fr/nike-huarache-paris_69.html Accessible: 1045 Brown as well http://www.huaracherunpas-cher.fr/nike-huarache-blanc_85.html as 1051 Brown. Dimensions: Michael http://www.huaracherunpas-cher.fr/huarrache-blanche_135.html 8-13 ; T 8-13. Palm sewed http://www.huaracherunpas-cher.fr/nike-huarache-marron_165.html stitchout design. http://www.huaracherunpas-cher.fr/nikeair-huarache_88.html Bumpy TravelStep foot bed is http://www.huaracherunpas-cher.fr/air-huarache-light_139.html constructed of http://www.huaracherunpas-cher.fr/nike-huarache-homme_141.html contoured Avoi. Sharpened Venture outsole with circular http://www.huaracherunpas-cher.fr/nike-air-huarache-beige_112.html pieces gives utmost http://www.huaracherunpas-cher.fr/nike-air-huarache-rouge_47.html comfort and http://www.huaracherunpas-cher.fr/huarache-leopard_77.html ease.Rocky Yellow-colored Jewel Slip-On 1051: Place http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-rose_58.html your most comfortable ft http://www.huaracherunpas-cher.fr/nike-huarache-id_164.html . frontward with http://www.huaracherunpas-cher.fr/chaussure-air-huarache_180.html Rocky Yellowish Gemstone House shoes. Traditional http://www.huaracherunpas-cher.fr/huarache-noir-et-blanc_96.html Rugged high quality http://www.huaracherunpas-cher.fr/nike-air-huarache-2_92.html complies with easy-going http://www.huaracherunpas-cher.fr/air-huarache-solde_40.html slip-on ease! Together with "perfect fit' http://www.huaracherunpas-cher.fr/nike-air-huarache-prix_120.html handsewn construction in addition http://www.huaracherunpas-cher.fr/nike-huarache-3_108.html to shock-absorbing tiers, http://www.huaracherunpas-cher.fr/nike-huarache-femmes_182.html they are the kinds you'll http://www.huaracherunpas-cher.fr/nike-air-huarache-safari_73.html want to wear while amusement http://www.huaracherunpas-cher.fr/nike-huarache-jd_46.html comes http://www.huaracherunpas-cher.fr/huarache-acheter_83.html around. More: Full-grain synthetic leather uppers http://www.huaracherunpas-cher.fr/nike-huarache-toute-noir_154.html , hand-picked for top level http://www.huaracherunpas-cher.fr/boutique-nike-huarache_151.html ease; Classy, http://www.huaracherunpas-cher.fr/huarache-2017_99.html Rocky-reliable handsewn stitchout layout; Shaped http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-bleu_130.html EVA TravelStep sole soaks http://www.huaracherunpas-cher.fr/huarache-air-max_163.html in shock and http://www.huaracherunpas-cher.fr/nike-huarache-beige_91.html shock absorption; Acadia outsole can http://www.huaracherunpas-cher.fr/nike-huarache-leopard_57.html be segmented intended for optimum http://www.huaracherunpas-cher.fr/nike-huarache-magenta_51.html freedom and comfort; Just http://www.huaracherunpas-cher.fr/huarache-light_50.html about every http://www.huaracherunpas-cher.fr/nike-huarache-free-light_134.html approximately. Of sixteen ozs. Order http://www.huaracherunpas-cher.fr/nike-air-huarache-original_144.html Your own Today! Rocky Outback http://www.huaracherunpas-cher.fr/nike-air-huarache-run-pas-cher_98.html Gore-tex Water resistant Industry shoe http://www.huaracherunpas-cher.fr/nike-air-huarache-noir_97.html 8723: Mens 6" http://www.huaracherunpas-cher.fr/nike-air-huarache-light-pas-cher_44.html Rugged Ridgetoe http://www.huaracherunpas-cher.fr/basket-nike-huarache_45.html Gore-Tex Water resistant Walker shoe-5212: You may http://www.huaracherunpas-cher.fr/huarache-chaussures_95.html get http://www.huaracherunpas-cher.fr/nike-huarache-run_72.html too long walk in step quickly http://www.huaracherunpas-cher.fr/nike-huarache-ultramarine_125.html with such. The http://www.huaracherunpas-cher.fr/nike-air-huarache-mid_78.html second anyone slip into http://www.huaracherunpas-cher.fr/air-max-huarache_39.html these types of http://www.huaracherunpas-cher.fr/nike-air-huarache-homme_150.html climbing shoe, the very first http://www.huaracherunpas-cher.fr/huarache-5_74.html day a person http://www.huaracherunpas-cher.fr/huarache-bordeaux_53.html wear them, they'll be similar to http://www.huaracherunpas-cher.fr/chaussure-huarache-nike_173.html old buddies simple on http://www.huaracherunpas-cher.fr/nike-air-huarache-pas-chere_161.html your foot following that http://www.huaracherunpas-cher.fr/nike-huarache-free-run-2012_146.html with in. Wonderful http://www.huaracherunpas-cher.fr/nike-air-huarache-chaussures_80.html design means comfort on http://www.huaracherunpas-cher.fr/nike-air-huarache-run_43.html the walk. Twin solidity EVA http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine-og_75.html midsole. Sturdy water-resistant http://www.huaracherunpas-cher.fr/huarache-vintage_42.html and to be able http://www.huaracherunpas-cher.fr/air-huarache-nike_87.html to Gore-Tex cloth. Total hemp brownish http://www.huaracherunpas-cher.fr/nike-huarache-chaussures_129.html uppers. Mild trac http://www.huaracherunpas-cher.fr/huarache-femmes_170.html black color http://www.huaracherunpas-cher.fr/nike-air-huarache-blanche_153.html rubberized outsole provides light in weight http://www.huaracherunpas-cher.fr/nike-air-force-1-huarache_113.html freedom. Each are 6" highl http://www.huaracherunpas-cher.fr/chaussures-huarache-nike_152.html along with roughly http://www.huaracherunpas-cher.fr/air-nike-huarache_107.html Twenty four ozs.Rocky Gents Polishable http://www.huaracherunpas-cher.fr/huarache-run_132.html Outfit Buckskin http://www.huaracherunpas-cher.fr/nike-huarache-femme-pas-cher_140.html Chukka 501-8: The actual water http://www.huaracherunpas-cher.fr/air-huarache-og_71.html resistant, insulated Lynx http://www.huaracherunpas-cher.fr/basket-huarache_63.html shoe via Rocky http://www.huaracherunpas-cher.fr/nike-huarache-run-pas-cher_61.html is often a hunter's best http://www.huaracherunpas-cher.fr/nike-air-huarache-90_110.html ally. With the uppr made http://www.huaracherunpas-cher.fr/air-huarache-noir_116.html with leather http://www.huaracherunpas-cher.fr/nike-huarache-taille_49.html along with a allow air http://www.huaracherunpas-cher.fr/nike-huarache-usa_114.html through Gore-Tex materials, this shoe http://www.huaracherunpas-cher.fr/nike-air-huarache-run-chaussures_174.html safeguards from sun and http://www.huaracherunpas-cher.fr/nike-huarache-prix_66.html rain and http://www.huaracherunpas-cher.fr/air-huarache-grise_142.html also helps to keep the particular http://www.huaracherunpas-cher.fr/huarache-enfant_62.html cold out and also http://www.huaracherunpas-cher.fr/huarache-bleu_111.html dried up. Some sort http://www.huaracherunpas-cher.fr/nike-huarache_93.html of allow air http://www.huaracherunpas-cher.fr/nike-huarache-boutique_147.html through to be able to http://www.huaracherunpas-cher.fr/air-huarache-noire_117.html cellular lining, 300 grms associated http://www.huaracherunpas-cher.fr/huarache-nike-chaussures_131.html with http://www.huaracherunpas-cher.fr/nike-air-max-huarache-hybrid_121.html Thinsulate Really insulating material plus a http://www.huaracherunpas-cher.fr/air-huarache-paris_138.html polyurethane cushioned foot http://www.huaracherunpas-cher.fr/nike-huarache-safari_52.html bed make you stay more cozy. And the hostile Lynx outsole will keep you actually secure with many terrain.

Comment by scott154 12 weeks ago

Your point of view

You must be signed in to comment.