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

Print all 256 colors for testing TERM or for a quick reference

Terminal - Print all 256 colors for testing TERM or for a quick reference
( x=`tput op` y=`printf %$((${COLUMNS}-6))s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done; )
2010-09-06 10:39:27
User: AskApache
7
Print all 256 colors for testing TERM or for a quick reference

This is super fast and an easy way to test your terminal for 256 color support. Unlike alot of info about changing colors in the terminal, this uses the ncurses termcap/terminfo database to determine the escape codes used to generate the colors for a specific TERM. That means you can switch your terminal and then run this to check the real output.

tset xterm-256color

at any rate that is some super lean code!

Here it is in function form to stick in your .bash_profile

aa_256 ()

{

( x=`tput op` y=`printf %$((${COLUMNS}-6))s`;

for i in {0..256};

do

o=00$i;

echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;

done )

}

From my bash_profile: http://www.askapache.com/linux-unix/bash_profile-functions-advanced-shell.html

Alternatives

There are 8 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Seriously.. this is in my top 10!

Comment by AskApache 327 weeks and 3 days ago

awesome :-)

Comment by thejoecarroll 194 weeks and 4 days ago

I had created that will experience in the event it requires Movie theater through Yves Saint. Laurent. My spouse and i loved the actual fragrance fully when I utilised the actual papers ethusist reel but happen to be a lot of several other smells that will seemed additional interesting and active. Yet when I performed the "examination" regarding donning Shows to get a mid-day, We positioned i preferred the particular smell.Household is possibly the most crucial group to get items pertaining to through the Christmas time. Trying to find X-mas products intended for Mum have to be an operation which will take a considerable amount of idea as well as cardiovascular browsing to be able to offer her with a gift which is something might be glad of. Home items, Profession Equipment, Parenthood Products, Indulging, Cooking area Add-ons, Individual Attention Products, Existing Greeting cards, Looking into Product or service, Evening meal, Wax lights, Diamonds cardiovascular Accessories, GHD curly hair corrected, and the like.Quickly, this Pottery Check out variety was launched as well as major stars by over the world started supporting that and the watches was really a correct manifestation with the type in addition to poise of your female. This feature is constucted from the best earthenware product or service plus the good quality of the timepieces is actually unique. Same goes with accentuate your figure and handle of the wristwatches that will make that an optimal present for the female of your dreams.As could, Momâ& acirc; EUR(TM )s Time can show up. We need to invest in a few products for mommy, friends and family. But now I think Outlet bags is definitely effective end up being as a gift, because, It is extremely well-known to every style supporters, and all sorts of merchandise on the http://www.hermesbeltsbirkinkellybag.co.uk/ web page a common company, cool format, numerous forms to pick, maximum, these 4 elements make purses unpredictable in the latest time period.This year's variations are available in the type of this MK's Oversized Runway Clock Watch, Tan, which is a contemporary contemporary timepiece which shouts luxury. Its face is usually a tan blown wrist watch within a major tan situation together with tonal as well as white highlights. Your possibly figures are Persia having bright baton prints for that peculiar hrs. Some sort of three-dial cease view ability is placed from the heart using a little night out eye-port relating to the 4 along with 5 o-clock placement. It is designed which has a lovely tan bracelets straps using a use belt. This specific observe will be a beacon upon any kind of side.Cruise outlines incorporate duty-free buying the intelligent girl connected with perfume nosing about the motorboat journey store scent counter-top might observe that charges for the perfumes on the machine dispatch are not lots several than rates back home for the regional chain retailer or web store. So what's the large good deal concerning duty-free at any rate?Checklist Straight down your own specified demands" Till you perform the internet search, make certain you possess in fact comprehensive your selected needs. Whether you're searching for larger heeled stilettos or even stylish leather-based shoes or boots, shine leather-based pump footwears or perhaps the peppy canvases, narrow down the options and your search.Fat decrease merely a small amount of the perfect artist bags offered this specific new drop year. Developer bags excel extras that happen to be more than likely to mend the fall cabinet.

Comment by stephanieg915 3 days ago

Distinctive presents regarding Evening of romance may be the most up to date cell phone which could handmade to a provide holder packed with most sort of beautiful candy in addition to sweets. Or maybe you have the ability to furthermore decide on a Romantic days celebration provide jar that offers a range of fitness center and beauty items.Tidy your own designer wallet on your own. Many creator bag entrepreneurs not really performing anything at all higher than cleanse down the handbags using a moist towel, others pre handle along with anti - tarnish and also waterproof sprinkles. Consistently use wash rag hair conditioners with a cloth rather than straight onto the natural http://www.hermesbeltsbirkinkellybag.co.uk/ leather. Don't use anything but this rainfall resistant soon after fitness the actual bag. And then use the resistant in hassle-free wide ranging activities to help free from centred locations connected with solution, which often in the event that spectacular might mark any handbag. Tend not to make use of automobile or maybe furnishings treatment polishes while they will unquestionably hurt the bag. Many of us suggest 2 items for cleaning the builder wallet with.A builder handbag is a component of one's recognition; an expression of your one-of-a-kind style, and for that reason you have to offer the item the concern it is entitled to. Pamper it as a you'd probably by yourself, ones dwelling maybe car. It is your buddy that has every thing close to you. By simply approaching your current builder wallet with the maximum proper care, you may certainly maximizing it's long life by means of many years.To identify Burberry's top quality and also treatment for the Regal loved ones, it has been given a pair of Souverain Court warrants, a single simply by Her Regal Effectiveness Full At the The second and one far more simply by His Elegant Highness, Price tag Philip, creating Burberry Available for sale glamorous plenty of regarding upper class.This is apparently virtually such as a Burberry handbags will likely be sooner or later one of the professional stylish using the technique world. BURBERRY are going to be well-known on account of it's outside wear, today and night time is more effective renowned for their typically founded clutches.In Great britain, and if the actual breeze wasting neighborhood, beneath the drizzle, but People in britain do not take pleasure in bears the outdoor patio umbrella, might instead place a windcoat. This isn't a great Brit peculiarity, but one obstruct rainfall windbreaker gave incentives, even though reference point coat, many individuals first created at heart will be English model Burberry.One really should be choosey although buying a smell. An ideal smell is certainly one which integrates well having versions identity. Just before choosing a odor, review the residential properties, factors in addition to uses. Pertaining to event people just like spicy perfumes though females hunt for flowery smells. The requirement of scents can be increasing nevertheless everyone is trying to find different and not really the standard fragrances.Principalfashion is obviously approximately associate together with the present design and styles regarding creator clothes through the hottest model makers over the world. Principalfashion has each of the popular custom clothing products via earlier seasons in addition to the perfect coming from fresh libraries. Link for brand new changes for searching low cost programmer clothes.

Comment by stephanieg915 3 days ago

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/promo-canada-goose_263.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pas-cher_192.html

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

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

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

www.canadagoosefemmehomme2016.fr/livigno-canada-goose_72.html

Comment by sguerra376 1 day ago

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

www.canadagoosefemmehomme2016.fr/canada-goose-blouson-aviateur-chilliwack-homme_321.html

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

www.canadagoosefemmehomme2016.fr/vetement-goose-canada_345.html

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/soldes-canada-goose_137.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-site-fiable_136.html

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html

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

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

www.canadagoosefemmehomme2016.fr/rideau-canada-goose_303.html

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-site-officiel_57.html

Comment by sguerra376 22 hours ago

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/citadel-parka-canada-goose_62.html

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

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

http://www.canadagoosefemmehomme2016.fr/femmes-canada-goose_281.html

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

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

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose-femme_143.html

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

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-pas-cher_426.html

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

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

Comment by sguerra376 22 hours ago

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-blouson-aviateur-chilliwack-homme_321.html

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

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

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

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

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

Comment by sguerra376 2 hours ago

Your point of view

You must be signed in to comment.