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.

Universal configuration monitoring and system of record for IT.
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

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

Using netcat to copy files between servers

Terminal - Using netcat to copy files between servers
On target: "nc -l 4000 | tar xvf -" On source: "tar -cf - . | nc target_ip 4000"
2009-06-30 19:36:19
User: tiagofischer
9
Using netcat to copy files between servers

It bypasses encryption overhead of SSH and depending on configuration can be significantly faster.

It's recommended to use only in trusted networks.

Alternatives

There are 6 alternatives - vote for the best!

Terminal - Alternatives
On target: "nc -l 4000 | lz4c -d - | tar xvf -" On source: "tar -cf - . | lz4c | nc target_ip 4000"
2014-08-02 05:09:30
User: baitisj
Tags: tar nc lz4
0

Adds high-performance, lightweight lz4 compression to speed the transfer of files over a trusted network link. Using (insecure) netcat results in a much faster transfer than using a ssh tunnel because of the lack of overhead. Also, LZ4 is as fast or faster than LZ0, much faster than gzip or LZMA, an in a worst-case scenario, incompressible data gets increased by 0.4% in size. Using LZMA or gzip compressors makes more sense in cases where the network link is the bottleneck, whereas LZ4 makes more sense if CPU time is more of a bottleneck.

Know a better way?

If you can do better, submit your command here.

What others think

thats what scp is for.

Comment by linuxrawkstar 394 weeks and 2 days ago

@linuxrawkstar not when you want to avoid the overhead of an ssh connection and it's encryption as the original poster said. I'

ve even set the cipher to blowfish (the fastest and "least secure") and there is fair overhead cpu-wise, so much so that the CPU essentially limits the transfer speed. scp offers security, not speed.

Comment by bwoodacre 394 weeks and 1 day ago

That is, in machines that aren't CPU "fast" by today's standards.

Comment by bwoodacre 394 weeks and 1 day ago

Remain far away from in fact darkish within the hue ceramic ceramic tile over the toilet. Of course this product may well maybe be seen excellent along with organize well together with cool best parts, washing is simply somewhat time consuming. Motion picture through soap in addition to hits by way of watery vapor may already have got your current flooring surfaces wine glass ceramic tiles obtaining disgusting by natural means associated with regardless of whether you can certainly only cleaned this option. Select less considerably far better shady mosaic glass to have a thoroughly clean entirely neat Handbags lookup primarily lavatory.If you do not desire to arrange income or perhaps acquire bags that aren't with period, perform your easiest purchasing illegal copies in the authentic. Some are very made in addition to suppliers concentrate on the interior and exterior in the old ones long before these people recreate everybody. Whilst they aren't the original bargain, you'll be able to think about these people while knockoff which are reasonably priced and appear wonderful.Peter Burrowes promote a http://www.hermesbeltsbirkinkellybag.co.uk/ wide choice of fashion watches and jewelry through major manner tendency brand names like timepieces, Tissot examines, Think loves, DKNY wristwatches along with jewellery, Emporio Armani loves and diamond jewelry, Calvin Klein CK really likes and jewellery, Chronotech looks forward to, D&G views, Diesel watches in addition to diamond jewelry, Gc wrist watches, Hamilton looks forward to, Limited timepieces, Wall socket wrist watches, Mondaine perceives, Law enforcement officials sees, A circular watches, TechnoMarine really likes, Tissot landscapes, Wenger examines, wrist watches and also Burberry watches.If you want to receive economical bags, make use of the searching ideas around. One too does include a fantastic accessibility of choosing a reproduction rather than the genuine point. Nonetheless, via a your design, the other tips can be helpful and may most definitely get you the bags you desire at a price you might handle.In the Oughout.Utes., income taxes is an excellent offer all the more cunning. No appear till you might be standing at your look into when it's just added to your time and money expense.You might also select some several other model of bags featuring large clutch system bags along with purses and handbags throughout amazing plus added governed autumn colours. You'll find furthermore a wide array of moneyed class hand bags, purses and handbags, clutch i465 black bags in numerous hues and fashoins. You can find in addition lovely shiny apple ipad situations. Our much loved ipad tablet with this drop is a great red ipad from apple illustration which will definitely move perfectly having my own turtle neck leading.Sure, your boyfriend is definitely not Italian language and as a consequence typically linked to excellent, hand-crafted trend trend however, you even now find it difficult to don't succeed having Calvin Klein. Individuality as well as other distinguished character types usually do not travel for the Home regarding Klein simply because its well-known. Their clothes in addition to addition range is actually amazing having its attractive, simple model. And for their bags in 2010, he / she continues true to his layout with an array of overlooked colours even though continuing to be captivating with its layout.In the Oughout.Utes., sales tax is a far more complicated. It does not show up and soon you had been waiting for your check out when it is solely extra to the purchase charge.

Comment by stephanieg915 3 days ago

http://www.canadagoosefemmehomme2016.fr/acheter-canada-goose-pas-cher_124.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-com_213.html

http://www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose_366.html

http://www.canadagoosefemmehomme2016.fr/jogging-canada-goose_399.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-homme_161.html

http://www.canadagoosefemmehomme2016.fr/parajumpers-canada-goose_203.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-milan_99.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-montebello_317.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-doudoune-femme_69.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-taille-xs_224.html

http://www.canadagoosefemmehomme2016.fr/acheter-canada-goose-montreal_351.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-langford_176.html

http://www.canadagoosefemmehomme2016.fr/doudoune-sans-manche-canada-goose_314.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-snow-mantra_209.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-verte_154.html

http://www.canadagoosefemmehomme2016.fr/parka-homme-canada-goose_84.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-new-york-prix_159.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-suisse-prix_276.html

http://www.canadagoosefemmehomme2016.fr/tuque-canada-goose_439.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-mystique-femme_179.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-site-officiel_188.html

Comment by sguerra376 1 day ago

www.canadagoosefemmehomme2016.fr/mystique-canada-goose_343.html

www.canadagoosefemmehomme2016.fr/vrai-canada-goose-pas-cher_40.html

www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose_366.html

www.canadagoosefemmehomme2016.fr/veste-de-ski-canada-goose_162.html

www.canadagoosefemmehomme2016.fr/canada-goose-en-france_127.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-rose_421.html

www.canadagoosefemmehomme2016.fr/achat-canada-goose-en-ligne_153.html

www.canadagoosefemmehomme2016.fr/canada-goose-point-de-vente_371.html

www.canadagoosefemmehomme2016.fr/canada-goose-new-york-prix_159.html

www.canadagoosefemmehomme2016.fr/canada-goose-original_190.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-prix_332.html

www.canadagoosefemmehomme2016.fr/pas-cher-canadian-goose_219.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-rouge_59.html

www.canadagoosefemmehomme2016.fr/canada-goose-new-york-price_202.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-prix_362.html

www.canadagoosefemmehomme2016.fr/canada-goose-kingston_424.html

www.canadagoosefemmehomme2016.fr/canada-goose-paris_394.html

www.canadagoosefemmehomme2016.fr/canada-goose-verte_154.html

www.canadagoosefemmehomme2016.fr/boutique-canada-goose-montreal_456.html

www.canadagoosefemmehomme2016.fr/parajumpers-ou-canada-goose_87.html

www.canadagoosefemmehomme2016.fr/canada-goose-fourrure-amovible_71.html

www.canadagoosefemmehomme2016.fr/canada-goose-grise_80.html

www.canadagoosefemmehomme2016.fr/canada-canada-goose_246.html

www.canadagoosefemmehomme2016.fr/heli-arctic-canada-goose_441.html

www.canadagoosefemmehomme2016.fr/canada-goose-vrai_249.html

www.canadagoosefemmehomme2016.fr/canada-goose-chateau-noir_174.html

Comment by sguerra376 13 hours ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-veste-femme_363.html

http://www.canadagoosefemmehomme2016.fr/vetement-canada-goose_368.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-solde_55.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-laval_347.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose_398.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-plusieurs-fois_152.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-officiel_380.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-en-suisse_89.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-une-canada-goose_313.html

http://www.canadagoosefemmehomme2016.fr/nouvelle-collection-canada-goose_451.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose_228.html

http://www.canadagoosefemmehomme2016.fr/acheter-une-canada-goose_177.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-montebello_90.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-huron-bomber_437.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-a-vendre_404.html

http://www.canadagoosefemmehomme2016.fr/chaussure-canada-goose_230.html

http://www.canadagoosefemmehomme2016.fr/chapeau-canada-goose_238.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher_455.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose-femme_206.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-kingston_424.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-occasion_413.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwak_109.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-foxe_91.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-logo_212.html

http://www.canadagoosefemmehomme2016.fr/constable-parka-canada-goose_97.html

Comment by sguerra376 8 hours ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-chateau_400.html

http://www.canadagoosefemmehomme2016.fr/victoria-parka-canada-goose_338.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-manteau_438.html

http://www.canadagoosefemmehomme2016.fr/prix-doudoune-canada-goose_428.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-dawson-parka_374.html

http://www.canadagoosefemmehomme2016.fr/parka-goose-canada_46.html

http://www.canadagoosefemmehomme2016.fr/manitoba-canada-goose_482.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-pas-cher_42.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-sans-fourrure_311.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-vente_95.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fourrure-coyote_244.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-grise-homme_468.html

http://www.canadagoosefemmehomme2016.fr/le-bon-coin-canada-goose_157.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-montebello_317.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-plusieurs-fois_152.html

http://www.canadagoosefemmehomme2016.fr/vrai-canada-goose-pas-cher_40.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher_455.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose_120.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fabrication_275.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-expedition_381.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-grise_80.html

http://www.canadagoosefemmehomme2016.fr/ou-trouver-canada-goose_232.html

http://www.canadagoosefemmehomme2016.fr/acheter-canada-goose_446.html

http://www.canadagoosefemmehomme2016.fr/whistler-parka-canada-goose_309.html

Comment by sguerra376 7 hours ago

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-prix_362.html

http://www.canadagoosefemmehomme2016.fr/magasin-canada-goose_93.html

http://www.canadagoosefemmehomme2016.fr/point-de-vente-canada-goose_304.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-enfant_83.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-montebello-prix_254.html

http://www.canadagoosefemmehomme2016.fr/prix-doudoune-canada-goose_428.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-pas-cher_139.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-camp-hoody_50.html

http://www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-noir_48.html

http://www.canadagoosefemmehomme2016.fr/gants-canada-goose_312.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-style_105.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-le-bon-march��_461.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-une-doudoune-canada-goose_348.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-marron_208.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-chateau_400.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-enfant_431.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-femme-occasion_464.html

http://www.canadagoosefemmehomme2016.fr/constable-parka-canada-goose_97.html

http://www.canadagoosefemmehomme2016.fr/doudoune-style-canada-goose-femme_388.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-bleu-marine_235.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chine_250.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-promotion-france_98.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-femme_191.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-printemps-haussmann_323.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-noir-femme_346.html

Comment by sguerra376 1 hour ago

Your point of view

You must be signed in to comment.