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

Multi-thread any command

Terminal - Multi-thread any command
xargs -P 3 -n 1 <COMMAND> < <FILE_LIST>
2011-07-25 22:53:32
User: h3xx
Functions: xargs
2
Multi-thread any command

For instance:

find . -type f -name '*.wav' -print0 |xargs -0 -P 3 -n 1 flac -V8

will encode all .wav files into FLAC in parallel.

Explanation of xargs flags:

-P [max-procs]: Max number of invocations to run at once. Set to 0 to run all at once [potentially dangerous re: excessive RAM usage].

-n [max-args]: Max number of arguments from the list to send to each invocation.

-0: Stdin is a null-terminated list.

I use xargs to build parallel-processing frameworks into my scripts like the one here: http://pastebin.com/1GvcifYa

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Clearly keeping your traveling the automobile record clear could possibly be the greatest procedure for take care of your specific coverage discounts suprisingly low. Buying just certain certain speeding priced or one going crime of all sorts of merely one type might clean your chances linked to studying the ideal achievable pace during automobile insurance policy proper care. In case you use a Drunk driving or even DWI certainty dedicated to your file it is best to you will be inside the position to kiss totally reduced service fees good-bye to get a smaller of 3 hundreds of years.Essential recommendation to offer consideration to along with electronic pictures is usually which you want to effectively work with light pale each time sensible. Typically this will certainly possibly be much more irresistible to the particular vision within evaluation from what all kinds in the event it go to critical lighting. The manner will be reproduction which is actually got by filming close to sun, dark, as well as right after choosing a big surprise. By simply cooking having a screen, usage one diffuser Handbags in order to from the flash's assault.The Minute wrist watch, MK's Mid-Size Tribeca Timepiece Observe, Espresso/White Horn, is furthermore bound to produce a style craze affirmation. The spherical scenario is an espresso metal in addition to whitened horn acetate that is certainly appealing with develop along with colour. Your dial pursuits the tan chronograph precise having also Persia numerals along with dual baton shaded pens showcasing your odd several hours. It offers some sort of concentrated stop view function and also little date eye-port with the 6 o'clock situation. The related trinket group simply includes for the style with this observe.You can certainly furthermore choose to purchase people bags that could are actually introduced over the periods and aren't so well received any further. Suppliers as well as middlemen price these phones make the move, and that means you make use of more cost-effective fees http://www.hermesbeltsbirkinkellybag.co.uk/ right. This is a superior principle for individuals who prefer a bag for private work with as a substitute than others getting for re-sale due to the fact in which beyond period bags couldn't promote you'd like you actually trust they would.Samantha Barks wear a dark bodysuit, nylons and strip most through the Electric outlet Pre-fall The year 2013 series, using a dark-colored Gia motorola clutch as well as black Barbara high heels the two through the Slide 2013 collection.Source Box: Elegant designer watches like DKNY considers offer significantly better high quality along with consistency than normal footpath designer watches. Don't let the cost of brand name designer watches like views fool anyone. The cost is undoubtedly worth every penny.This the autumn months are going to be an enjoyable time for developments as well as add-ons. Stock up on brand new add-ons and vistas and be ready for that chilly weather condition. It certainly is observe time of year and you may find out brand-new techniques to use your current check out with outfits. Just when you cover does not imply it's not possible to always be trendy and you consistently have to be capable of tell the minute!Review this prices" The most important things within on-line shopping would be to do a price look at. Simply no concern if you're buying BCBG footwears on the net or even a, analyzing the cost is key thing to make sure all on your own giving her a very acquire. Usually do not dive in to buying something which results in your wallet internal bleeding. As a substitute, assess the expense of your type for some other sites to make sure alone giving her a very great buy.

Comment by stephanieg915 3 days ago

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

http://www.canadagoosefemmehomme2016.fr/femme-canadian-goose_104.html

http://www.canadagoosefemmehomme2016.fr/blouson-goose-canada_195.html

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-solaris-parka_375.html

http://www.canadagoosefemmehomme2016.fr/avis-sur-canada-goose_334.html

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

http://www.canadagoosefemmehomme2016.fr/marque-doudoune-canada-goose_74.html

http://www.canadagoosefemmehomme2016.fr/forum-canada-goose_60.html

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

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

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

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

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/magasin-d-usine-canada-goose_331.html

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

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

Comment by sguerra376 2 days ago

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

http://www.canadagoosefemmehomme2016.fr/huron-bomber-canada-goose_335.html

http://www.canadagoosefemmehomme2016.fr/prix-d-une-doudoune-canada-goose_390.html

http://www.canadagoosefemmehomme2016.fr/gilets-canada-goose_370.html

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

http://www.canadagoosefemmehomme2016.fr/branta-canada-goose_271.html

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

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

http://www.canadagoosefemmehomme2016.fr/doudoune-canadian-goose_205.html

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/prix-d-une-canada-goose_130.html

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

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

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

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

Comment by sguerra376 18 hours ago

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

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

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

www.canadagoosefemmehomme2016.fr/doudoune-femme-canada-goose_103.html

www.canadagoosefemmehomme2016.fr/canada-goose-homme-pas-cher_440.html

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

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/marque-doudoune-canada-goose_74.html

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-pour-b��b��_146.html

www.canadagoosefemmehomme2016.fr/canada-goose-200_411.html

www.canadagoosefemmehomme2016.fr/parka-citadel-canada-goose_253.html

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

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

Comment by sguerra376 17 hours ago

Your point of view

You must be signed in to comment.