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.

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:



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!

Top Tags



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
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.


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


Comment by sguerra376 1 day ago

























Comment by sguerra376 18 hours ago

Your point of view

You must be signed in to comment.