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

resolving basic authentication problem(401) with wget

Terminal - resolving basic authentication problem(401) with wget
wget --auth-no-challenge --server-response -O- $url 2>&1 | grep "Cookie" | sed "s/^ Set-//g" > cookie.txt; wget --auth-no-challenge --server-response --http-user="user" --http-password="pw" --header="$(cat cookie.txt)" -O- $url
2010-12-01 11:24:35
User: glaudiston
Functions: grep sed wget
1
resolving basic authentication problem(401) with wget

I have a server with a php requiring basic authentication, like this:

header('WWW-Authenticate: Basic realm="do auth"');

header('HTTP/1.0 401 Unauthorized');

...?>

And the basic authentication in wget do not worked:

wget --auth-no-challenge --http-user="username" --http-password="password" -O- "http://url" wget --keep-session-cookies --save-cookies=cookies.txt --load-cookies=cokies.txt --http-user="username" --http-password="password" -O- "http://url"

I always received the 401 Authorization failed.

The saved cookie is always empty.

With my way, I received the header from the server and save the cookie, then resend the session cookie with authentication data

Alternatives

There are 12 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

To begin with, read the presentation associated with perfume as well as potty water. On the forgery you can observe different kinds of stunning not clear producing design and style, one example is * not big enough or maybe vague inscriptions. You must remember - inscriptions within the first are invariably distinct as well as neat.Another wonderful thing about Timex wristwatches is because produce watches for every individual. They just do not focus on just the scuba diver, the girl, or male. You can find a big selection of watches for the whole family such as kids his or her special types.Pure man made fibre scarves with bright doldrums, muted grays, browns in addition to green veggies hold off of the timeless search which used the courtroom over the 1950's as well as 1960's. Naturally, filter neckties within checked, decorated using images, shiny grays, purples and also oranges can also be donned. Any time selecting a vibrant necktie remember that the more striking the particular wrap is, the greater tuned around the accommodate must be, to help keep via hunting as well high in volume.In the years that Wall plug On-line went up to help popularity, his or her design has also developed. It's got delivered the many strong and also decorative new release of http://www.hermesbeltsbirkinkellybag.co.uk/ wrist watches that individuals see right now. It shows the flamboyant area in this range and also demonstrates that you can always find interesting things to check toward.Paris is really a commemorated footwear enthusiast. She is able to own a large number of couples connected with artist shoes or boots. There are even speak regarding donating many of them to an orphanage but it is hard to come by an individual involving your ex shoes or boots size. The celebs are Blind' get together expert dons sizing Eleven sneakers, thus she's got the sneakers custom-designed to install the girl significant legs.Every check out is made to reflect the primary nature involving Versace. Versace's utilization of precious and trendy jewelry of their timepieces along with extras are considerable regarding Versace style. The timepiece patterns are recognized simply by cleanse outlines and classic designs and colours for instance Language of ancient greece frets as well as the Medusa. Of these wrist watches, conventional appearances satisfies your essence in the current day earth, making a distinctly modern and desirable fashion.Brooklyn Borough Chief executive Marty Markowitz offers formally placed the support driving a suggested "Skyscraper Old District" name for Downtown Brooklyn, with a couple of adjustments. Markowitz said yet rule out the 80 Livingston Road co-op developing with the area, since the co-op entrepreneurs currently have asked for, and also stated however proceed an organized retail transformation to get a element of the Borough Public Constructing, among the secured buildings inside the milestone plan. Group Mother board Two has chosen in support of the program, which could defend some of the neighborhood's noticably properties, which includes Borough Corridor.Versace are continually searching for cherished, refined and also progressive resources to utilize into their watches along with jewelry. Expensive diamonds and also gemstones selected by means of expert gemmologist, advanced porcelain, 16 karat rare metal, anti-scratch pearl crystal clear, specially chosen top quality buckskin are a few of the constituents in the Versace product.

Comment by stephanieg915 6 days ago

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

www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme_474.html

www.canadagoosefemmehomme2016.fr/canada-goose-hybridge-hoody_382.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose-en-france_308.html

www.canadagoosefemmehomme2016.fr/prix-canada-goose-canada_416.html

www.canadagoosefemmehomme2016.fr/mystique-parka-canada-goose_229.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-expedition-homme_207.html

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

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-prix_243.html

www.canadagoosefemmehomme2016.fr/site-canada-goose_352.html

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

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

www.canadagoosefemmehomme2016.fr/macmillan-canada-goose_270.html

www.canadagoosefemmehomme2016.fr/parka-expedition-canada-goose_452.html

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-kensington-parka-femme_448.html

www.canadagoosefemmehomme2016.fr/taille-canada-goose_79.html

www.canadagoosefemmehomme2016.fr/fourrure-canada-goose_70.html

www.canadagoosefemmehomme2016.fr/canada-goose-victoria-pas-cher_211.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-montebello-femme_373.html

Comment by sguerra376 3 days ago

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

http://www.canadagoosefemmehomme2016.fr/manteau-femme-canada-goose_248.html

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-longue-homme_301.html

http://www.canadagoosefemmehomme2016.fr/lodge-hoody-canada-goose_133.html

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

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

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/goose-femme_52.html

http://www.canadagoosefemmehomme2016.fr/une-canada-goose_222.html

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

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

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

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

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

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

Comment by sguerra376 2 days ago

www.canadagoosefemmehomme2016.fr/montebello-parka-canada-goose_287.html

www.canadagoosefemmehomme2016.fr/parka-montebello-canada-goose_379.html

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

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-prix_243.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-pas-cher_310.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-doudoune-sans-manche_166.html

www.canadagoosefemmehomme2016.fr/doudoune-longue-canada-goose_447.html

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

www.canadagoosefemmehomme2016.fr/chateau-parka-canada-goose_225.html

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

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

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

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

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-longue-femme_272.html

www.canadagoosefemmehomme2016.fr/parka-chateau-canada-goose_94.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-ou-parajumpers_414.html

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

www.canadagoosefemmehomme2016.fr/vente-doudoune-canada-goose-femme_197.html

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

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

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

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

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

Comment by sguerra376 2 days ago

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

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

http://www.canadagoosefemmehomme2016.fr/kensington-canada-goose_234.html

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-france-site-officiel_307.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/doudoune-goose-canada_292.html

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

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

http://www.canadagoosefemmehomme2016.fr/trillium-parka-canada-goose_108.html

http://www.canadagoosefemmehomme2016.fr/vente-canada-goose-montreal_160.html

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-homme-parka_111.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/leboncoin-canada-goose_481.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-modele-victoria_409.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-3-fois_242.html

http://www.canadagoosefemmehomme2016.fr/doudoune-longue-canada-goose_447.html

Comment by sguerra376 2 days ago

www.canadagoosefemmehomme2016.fr/veste-canada-goose-solde_198.html

www.canadagoosefemmehomme2016.fr/canada-goose-hybridge-hoody_382.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-d-occasion_466.html

www.canadagoosefemmehomme2016.fr/parka-montebello-canada-goose_379.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose-en-france_308.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-homme-pas-cher_341.html

www.canadagoosefemmehomme2016.fr/doudoune-longue-canada-goose_447.html

www.canadagoosefemmehomme2016.fr/canada-goose-paris-magasin_420.html

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

www.canadagoosefemmehomme2016.fr/pantalon-canada-goose_315.html

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

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

www.canadagoosefemmehomme2016.fr/doudoune-style-canada-goose_283.html

www.canadagoosefemmehomme2016.fr/site-canada-goose_352.html

www.canadagoosefemmehomme2016.fr/canada-goose-longue-homme_301.html

www.canadagoosefemmehomme2016.fr/canada-goose-grise-femme_269.html

www.canadagoosefemmehomme2016.fr/montebello-canada-goose_148.html

www.canadagoosefemmehomme2016.fr/manteau-homme-canada-goose_82.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber-femme_458.html

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

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

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

Comment by sguerra376 1 day ago

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

www.canadagoosefemmehomme2016.fr/canada-goose-france-site-officiel_307.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-pas-cher_472.html

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

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

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

www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose-pas-cher_204.html

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

www.canadagoosefemmehomme2016.fr

www.canadagoosefemmehomme2016.fr/prix-canada-goose-new-york_215.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pour-femme_475.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-france_142.html

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

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

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

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

www.canadagoosefemmehomme2016.fr/mystique-parka-canada-goose_229.html

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-femme-bleu-marine_151.html

www.canadagoosefemmehomme2016.fr/canada-goose-occasion-femme_282.html

www.canadagoosefemmehomme2016.fr/goose-canada-pas-cher_140.html

Comment by sguerra376 1 day ago

Your point of view

You must be signed in to comment.