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

use curl to resume a failed download

Terminal - use curl to resume a failed download
cat file-that-failed-to-download.zip | curl -C - http://www.somewhere.com/file-I-want-to-download.zip >successfully-downloaded.zip
2009-08-05 13:33:06
Functions: cat
-1
use curl to resume a failed download

If you are downloading a big file (or even a small one) and the connection breaks or times out, use this command in order to RESUME the download where it failed, instead of having to start downloading from the beginning. This is a real win for downloading debian ISO images over a buggy DSL modem.

Take the partially downloaded file and cat it into the STDIN of curl, as shown. Then use the "-C -" option followed by the URL of the file you were originally downloading.

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
curl -C - -o partially_downloaded_file 'www.example.com/path/to/the/file'

Know a better way?

If you can do better, submit your command here.

What others think

Using wget looks simpler: wget -c http://www.somewhere.com/file-I-want-to-download.zip -O file-that-failed-to-download.zip

Comment by Decoy 389 weeks ago

Decoy is correct. We usually use "wget -c ..." after cd to the dir where the file resides.

Comment by totti 285 weeks and 5 days ago

why to use the cat command?

I mean: the simplest way to accomplish this task would be doing something like:

curl -C - -L -O http://www.somewhere.com/file-I-want-to-download.zip

Of course, the above command should be entered in the same directory where the file-I-want-to-download.zip is.

Agree or not agree?

Comment by chapeupreto 277 weeks ago

Negotiations on terms have resumed between your Oughout.S. Mail Services and also the Nyc Office of Education, in a package that may switch the actual Peck Slip Mailbox within Reduce Long island in to a 400-seat grade school. The postal assistance 1st came into speaks with city officials to offer the home the 2009 summer time, right after getting the particular 70,800-square-foot building on Just one Peck Fall involving Pearl as well as Normal water avenues in the marketplace early in the year. But negotiations deadlocked plus the planned selling, which in turn officials declare may help minimize Lower Manhattan's overcrowded schools, were in jeopardy.This unique type of Bags additionally demonstrates inside designer watches. These kind of watches derive from the conventional patterns that we have already been seeing for years at this point but you are concluded along with garnished in a manner the really tried and tested models all of a sudden turn into remarkable in their own right.Pure silk neckties with muted colors doldrums, modest grays, brown colours and also veggies hold over vintage glimpse that will organised the courtroom in the 50s and also Fifties. Of course, thin neckties within tartan, embellished having graphics, vibrant crimsons, purples along with green beans can be utilized. When going with a vibrant necktie bear in mind the harder strong the particular connect is, a lot more tuned across the suit needs to be, to help keep by seeking as well high in volume.What about acquiring fragrance your ports of call? That depends in the way in which interface fees sales tax in case you will discover beneficial scent merchants readily available.French fragrances bar code gets underway with an amount Several, Great Britain : Fifty, Philippines -- 400-440, The world : Eighty-four, Italy -- 80-83, England ( space ) 30-37, America and also The us -- 00-09. At the bottom with the computer code you will notice the serialized variety - the particular computer code involving correspondence as well as amounts, which usually should actually match with all the computer code on the package.The developer of the prepared large rock and also aluminium twin condominium conversion in Tribeca is hoping to turnover the website prior to the shovels have strike the bottom. Alvaro Arranz, main of the important The spanish language construction business, acquired the particular factory with 401 Oregon Street as well as its close by car parking storage area regarding $57 mil throughout The year 2007. Right now, following hiring builder Morris Adjmi to make any mirror-image aluminium type of the actual warehouse around the garage web site, and getting the many needed mortgage approvals to do the actual alteration options, Arranz is expecting a new investor will pony upward $65 trillion for taking over and finished the task.Carefully look into the inscriptions -- brands and also information about the producer. A lot of suppliers involving fakes generally create more words within the brand or maybe modify the placement. For example, you'll find Clema instead of Climat, Awesome Winter season rather then Awesome Normal water, Genzo as opposed to Kenzo. The first container of cologne always has the details about the continent associated http://www.hermesbeltsbirkinkellybag.co.uk/ with manufacturing, day of manufacture, conclusion day, as well as the make up from the item.The highly effective celebrity couple attained at the Deauville Film Festival in August 1994 and also got betrothed on 20 The fall of Year 2000, merely 2 or 3 weeks after Douglas' breakup to Diandra Luker was selected. They've got a pair of little ones, Dylan Michael Douglas, 11, and also Carys Zeta Douglas, Seven.

Comment by stephanieg915 2 days ago

www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose-pas-cher_204.html,www.canadagoosefemmehomme2016.fr/canada-goose-yorkville-bomber_408.html,www.canadagoosefemmehomme2016.fr/yorkville-canada-goose_463.html,www.canadagoosefemmehomme2016.fr/nouvelle-collection-canada-goose_451.html,www.canadagoosefemmehomme2016.fr/canada-goose-trilium_181.html,www.canadagoosefemmehomme2016.fr/doudoune-canadian-goose_205.html,www.canadagoosefemmehomme2016.fr/canada-goose-hybridge-hoody_382.html,www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher_455.html,www.canadagoosefemmehomme2016.fr/canada-goose-langford_320.html,www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-site-officiel_188.html,www.canadagoosefemmehomme2016.fr/hommes-canadian-goose_102.html,www.canadagoosefemmehomme2016.fr/canada-goose-sans-manche_325.html,www.canadagoosefemmehomme2016.fr/doudoune-goose-canada_292.html,www.canadagoosefemmehomme2016.fr/canada-goose-victoria-pas-cher_211.html,www.canadagoosefemmehomme2016.fr/canada-goose-taille-grand-ou-petit_112.html,www.canadagoosefemmehomme2016.fr/le-bon-coin-canada-goose_157.html,www.canadagoosefemmehomme2016.fr/soldes-canada-goose_137.html,www.canadagoosefemmehomme2016.fr/canada-canada-goose_246.html,www.canadagoosefemmehomme2016.fr/canada-goose-camp-hoody_50.html,www.canadagoosefemmehomme2016.fr/canada-goose-longue-homme_301.html,www.canadagoosefemmehomme2016.fr/canada-goose-veste_126.html,www.canadagoosefemmehomme2016.fr/promo-canada-goose_263.html,www.canadagoosefemmehomme2016.fr/canada-goose-montebello-parka_81.html,www.canadagoosefemmehomme2016.fr/canada-goose-taille-xs_224.html,www.canadagoosefemmehomme2016.fr/doudoune-sans-manche-canada-goose_314.html,www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose-en-france_308.html,www.canadagoosefemmehomme2016.fr/canada-goose-blanc_171.html,www.canadagoosefemmehomme2016.fr/avis-sur-canada-goose_334.html,www.canadagoosefemmehomme2016.fr/canada-goose-entrepot_141.html,www.canadagoosefemmehomme2016.fr/doudoune-canada-goose_330.html,www.canadagoosefemmehomme2016.fr/canada-goose-stockholm_43.html,www.canadagoosefemmehomme2016.fr/casquette-canada-goose_134.html,www.canadagoosefemmehomme2016.fr/

Comment by sguerra376 1 day ago

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-outlet-france_122.html

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

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme-pas-cher_419.html

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

http://www.canadagoosefemmehomme2016.fr/survetement-canada-goose_356.html

http://www.canadagoosefemmehomme2016.fr/fr-canada-goose_182.html

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose_156.html

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

http://www.canadagoosefemmehomme2016.fr/chilliwack-canada-goose_485.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-champs-elysees_360.html

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

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

http://www.canadagoosefemmehomme2016.fr/magasin-canada-goose-paris_39.html

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-langford-parka_444.html

http://www.canadagoosefemmehomme2016.fr/selkirk-canada-goose_77.html

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

http://www.canadagoosefemmehomme2016.fr/langford-canada-goose_290.html

http://www.canadagoosefemmehomme2016.fr/logo-canada-goose_138.html

Comment by sguerra376 18 hours ago

Your point of view

You must be signed in to comment.