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

Replace Solaris vmstat numbers with human readable format

Terminal - Replace Solaris vmstat numbers with human readable format
vmstat 1 10 | /usr/xpg4/bin/awk -f ph-vmstat.awk
2009-05-04 04:55:00
User: MarcoN
Functions: vmstat
5
Replace Solaris vmstat numbers with human readable format

% cat ph-vmstat.awk

# Return human readable numbers

function hrnum(a) {

b = a ;

if (a > 1000000) { b = sprintf("%2.2fM", a/1000000) ; }

else if (a > 1000) { b = sprintf("%2.2fK", a/1000) ; }

return(b) ;

}

# Return human readable storage

function hrstorage(a) {

b = a ;

if (a > 1024000) { b = sprintf("%2.2fG", a/1024/1024) ; }

else if (a > 1024) { b = sprintf("%2.2fM", a/1024) ; }

return(b) ;

}

OFS=" " ;

$1 !~ /[0-9].*/ {print}

$1 ~ /[0-9].*/ {

$4 = hrstorage($4) ;

$5 = hrstorage($5) ;

$9 = hrnum($9) ;

$10 = hrnum($10) ;

$17 = hrnum($17) ;

$18 = hrnum($18) ;

$19 = hrnum($19) ;

print ;

}

Alternatives

There are 3 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Perfume is among people details, like precious stone wedding rings and also the living space value at a Tahitian inn, that just won't come about sale. Quite a few experienced gals regarding scent can easily advise you that perfume rates are safe and sound as being the Stone of Gibraltar. The most beneficial good deal you can acquire with the tastes fragrance industry is some kind of sold established for the holidays and Mothers day.You might search together with the importance labels in addition. Possibly some time which you like, you may place a purchase order while using web site. You will surely know that buying on-line has lots of positive aspects. You're just needed to click the option and every one of the points that you in fact would like will get to your spot. For one very little quantity, it is simple for you to definitely get the very best of factors.Bags are a crucial advantage within our each day existence however presume you will get a sophisticated excellent bag with sufficient area to dump mainly your needed things with a truly economical expense. Unsurprising in which, you can be getting into your settee by simply looking over this provide. Very well, next how to find anyone anticipating, acquire your hands on your T Makowsky satchel bags.The Finally, the many solutions within our look are generally http://www.hermesbeltsbirkinkellybag.co.uk/ incredibly inexpensive.Most of us marketing them for a significant reduce with alreadying active, A number of all of them actually sales 70 percent off of. If you suggest to save funds to have a MK Bags you can definitely not overlook these. If you decide on just one on our website we'll certainly shipping for the particular identical time which include cost-free distribution with no selling duty requirement, from concerning 7-10 nights door-to-door.Style model along with economical is the most important part in our day-to-day life. Evaluate the market segments, you can find economical in addition to wonderful objects, many individuals prefer to get numerous factors from markets.And there are a lot of design types in addition to cost-effective Kors Bags. You locate your appreciation bags that is the lowest priced in any respect retailers.If you do not would prefer to wait around upon cash flow as well as investment decision bags which are not inside period, do your own excellent getting replicas from the early. Some of these are well produced in addition to companies keep in mind on the interior and exterior in the old ones long before that they create everyone. Additionally though they aren't the important deal, you might consider them since knockoff which might be budget-friendly and appearance great.Sure, hes not necessarily Italian language and so commonly interchangeable to advanced, hand-crafted manner style but you'll still can't are unsuccessful together with Calvin Klein. Stars and other popular personas do not class on the Home regarding Klein just as a result of actuality that the popular. His or her garments as well as accessory brand actually transcends using its desirable, minimal design. As well as for his or her bags in 2010, he / she contains to be able to his fashion using a assortment of minimized colors though staying specific using its style.Show ones design and style that contains the actual Bags Outlet Quartz Round Occasion Day time Windowpane, concluded gold-tone metal and also turtle brownish merchandise. This kind of unique-looking enjoy is without a doubt unique. This will begin containing the circular, gold-tone stainless predicament. The particular call consists of Three or more subdials and evening screen in between Several:50 along with 5:Double zero. It's run by the quartz motion. Websites hyperlink trinket incorporates gold-tone world wide web links, knit using considerable tortoise brown material web hyperlinks. Paid by a add-ons hold, your trinket examines Half-dozen ins extended through 12mm important. Not necessarily developed for out-of-doors projects, this kind of observe remains to be drinking water invulnerable to be able to 95 legs.

Comment by stephanieg915 4 days ago

How do a little handbag turn into a large issues? In fact, taking this kind of a basic bag out and about is really problematic. Even trend learn got your be concerned following typically losing handbags in most sociable get-togethers. Even now, this is certainly just what motivated the fashion genius. Throughout March 1955, released this brand-new art purpose that brought on some sort of wave (by which your subject of 2.Fifty five selects). To start with shifting the military photo from your band, she more much more girl elements to the feminine dresses.Strut uptown and search fantastic inside the Michael Uptown Astor Zebra Tote. This particular dog produce custom handbag carries a polished designed seem with drawstring top rated and also signature bank holding logo design charm. The Jordan Uptown Astor Zebra Handbag includes brief buckskin handles, glowing porn star detail from front as well as bottom along with allover zebra art print routine. This Jordan Uptown Astor Zebra Bag is manufactured out of natural leather and also cloth having silver precious metal sculpt hardware which is easily obtainable in large grey/black. To get more available hues, go to on the net.Today, dog's fur has included in each and every type of apparel along with addition conceivable. Fur outfits has developed into a trend prerequisite. People should buy prolonged layers, short layers, sporty jackets, vests, caps, headbands, handbags, key chains along with hair solutions in a variety of hues, pelt sorts and designs.We are not at any time muddle-headed for brand spanking new manner trend choices it doesn't matter what the time actually is. It truly is that time of the season any time getaway, soaking in your gentle sun light and taking advantage of extended nights to attach having relatives and buddies consider top issue in our existence.If you might be finding developer purses regarding all on your own or even for re-sale and do not suggest to cover pricey expenses, you can find a lots of choices. A lot of developer bags are generally quickly caved a variety of approaches and they also usually do not show off giving up a a few months pay check to obtain them. Stick to the advices the following to determine basically how you may possibly obtain money-saving Handbags purses and handbags in a variety involving businesses.Straw purses and handbags is type this is a must pertaining to summer season. A new hay bag emerged in many components including pinus radiata the apple company soluble fiber, hammer toe soluble fiber as well as wheat or grain or perhaps feed fiber etc. Hay bags are making trend trend setting warm and friendly since they are made up of organic and natural product. So it's very easy to color them natural shades which do not injury skin color. Hay handbags can be a very cutting-edge idea since they show today creation is environmentally satisfying. You can appear rather happening and different using this kind of bag. Straw bags are not just sophisticated even so additionally match your pocket and as well planet. Some sort http://www.hermesbeltsbirkinkellybag.co.uk/ of hay bag can be so effective you could carry the item everywhere, whether it's meal, the shoreline and in some cases service.Cheap HandbagsMichael Kors designer watches contain a worldwide promise which can be legit for two decades through the date of purchase. You should merely offer the backup on the receipt to obtain states when the observe fails over the guarantee interval. The corporation states help make no cost repairs in addition to alternatives throughout the actual promise time period. Over-all should you have fetish pertaining to enjoy your assortment will need to have one particular.If you're for just a sweet smaller carrier regarding every day wear, the particular Prada Smaller Drawstring Handbag most likely the ideal handbag. This specific lovely smaller custom handbag has an within zero jean pocket for really storage space, breeze closure, leather-based top handles for straightforward transporting, an attractive ruched leading along with drawstring style. Your Prada Smaller Drawstring Carrier features a beautiful signature jacquard cellular lining along with personal Prada entrance platinum logo. This particular beautiful designer bag handbag is constructed of nylon material using tonal natural leather aspect and is also for sale in black. For much more readily available shades, check out Prada on-line.

Comment by stephanieg915 4 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-parka-banff-homme_403.html

www.canadagoosefemmehomme2016.fr/canada-goose-point-de-vente_371.html

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

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

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

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose_330.html

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

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

www.canadagoosefemmehomme2016.fr/yukon-bomber-canada-goose_147.html

www.canadagoosefemmehomme2016.fr/heli-arctic-canada-goose_441.html

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

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

www.canadagoosefemmehomme2016.fr/vetements-canada-goose_64.html

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

www.canadagoosefemmehomme2016.fr/canada-triple-goose_260.html

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

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

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

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

www.canadagoosefemmehomme2016.fr/homme-canada-goose_350.html

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

www.canadagoosefemmehomme2016.fr/manitoba-canada-goose_482.html

www.canadagoosefemmehomme2016.fr/nouvelle-canada-goose_193.html

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

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

www.canadagoosefemmehomme2016.fr/canada-gooser_220.html

Comment by sguerra376 1 day ago

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

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

www.canadagoosefemmehomme2016.fr/gilet-canada-goose_185.html

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

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

www.canadagoosefemmehomme2016.fr/veste-style-canada-goose_223.html

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-vs-pjs_443.html

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

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

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

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

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

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/la-canadienne-canada-goose_294.html

Comment by sguerra376 1 day ago

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

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

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

http://www.canadagoosefemmehomme2016.fr/homme-canada-goose_350.html

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

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

http://www.canadagoosefemmehomme2016.fr/whistler-parka-canada-goose_309.html

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

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

http://www.canadagoosefemmehomme2016.fr/mystique-canada-goose_343.html

http://www.canadagoosefemmehomme2016.fr/usine-canada-goose_85.html

http://www.canadagoosefemmehomme2016.fr/palliser-canada-goose_261.html

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

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

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

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-homme_296.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-une-doudoune-canada-goose_348.html

http://www.canadagoosefemmehomme2016.fr/constable-canada-goose_67.html

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

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

Comment by sguerra376 23 hours ago

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

www.canadagoosefemmehomme2016.fr/goose-canada_169.html

www.canadagoosefemmehomme2016.fr/borden-canada-goose_442.html

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

www.canadagoosefemmehomme2016.fr/resolute-canada-goose_116.html

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

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

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

www.canadagoosefemmehomme2016.fr/gants-canada-goose_312.html

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-gooser_220.html

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

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

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

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

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

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

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

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

Comment by sguerra376 19 hours ago

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

http://www.canadagoosefemmehomme2016.fr/revendeur-canada-goose-paris_266.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-au-canada-prix_54.html

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

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

http://www.canadagoosefemmehomme2016.fr/parka-banff-canada-goose_417.html

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

http://www.canadagoosefemmehomme2016.fr/chaussure-canada-goose_230.html

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

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

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/entrepot-canada-goose_158.html

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber-pas-cher_465.html

Comment by sguerra376 13 hours ago

Your point of view

You must be signed in to comment.