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

Convert file from UTF8 (no BOM) to UTF16 (with BOM)

Terminal - Convert file from UTF8 (no BOM) to UTF16 (with BOM)
recode UTF8..UTF-16LE linux-utf8-file.txt
2009-06-04 08:53:51
User: greppo
Convert file from UTF8 (no BOM) to UTF16 (with BOM)

Convert file from the UTF8 encoding used on Linux (has no "EF BB BF" byte order mark at the start) to the UTF-16 encoding used on Windows (has an "FF FE" byte order mark at the start).

Thanks to commenter: previous iconv command was the obsolete way to do it.


There are 5 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

That seems overly complicated. I prefer recode:

recode utf8..utf16 <in.txt >out.txt

That command does the same, producing UTF16 with BOM in big-endian byte order. If you need little-endian byte order, simply append "/s" (meaning "swap bytes"):

recode utf8..utf16/s <in.txt >out.txt
Comment by inof 397 weeks and 1 day ago

Erika Kors, a champion artist for a lot of Many years, is definitely best learn for producing amazing United states sportswear on inexpensive prices. For extended occasions, he's in fact enhanced the type of item to help attribute high-fashion apparel, footwears and also products intended for males and some women : that contains great watches.Whatever ones choice is definitely,or maybe Marc Ecko watch, frequently decide on a dominant local store that may promise great leading top quality as well as durability. Help make your gentleman a content one who owns most of these classy designer watches and produce the evening.Marc Ecko watches have in fact continuously also been a status indication and also this trend can be exhibiting a good upwards expansion year in year out. These kinds of highly fashionable wristwatches can be found in various styles, types, tones as well as resources. Their own product or service consists of wristwatches of numerous product such as platinum, silver, platinum eagle and titanium. Marc Ecko timepieces provides for a vast assortment of big faced time pieces that happen to be the two tough in addition to brilliant. If your guy suches because breakable designer watches future, you'll be surprised at the alternative given by this particular name brand. Opt for enjoy of one's preferred shade as well as metallic kind along with surprise the appreciated wristwatch for your partner.If you might be obtaining creator bags with regard to simply by yourself or for re-sale and never indicate to pay high priced prices, a few lot of choices. An outstanding present involving custom made bags usually are pleasantly offered in a selection of the way and so they usually do not characteristic delivering up some sort of months salary to have these individuals. Stick to the particular hints stated below to determine basically how you could get cost-effective Handbags handbags in a selection regarding retailers.Work Runway web host Heidi Klum guarantees being kindlied as soon as the lady seess bag choices this year. On account of the high-rating simple fact Television series, is definitely fast transforming into a residence label intended for United states design. His or her existing handbag series includes an extensive variety of variations coming from zebra-striped get bags to customized grip for fashionably small business girls that are constantly on the go. Aged choices like dangling company logo lure are nevertheless integrated.Amidst the many on-line electro-mechanical stores, this generally becomes challenging to find some reputabled spot which include unrestricted variety of premium books, having various models in addition to platforms, together with enforce economical expenditure on them. Exclusively, when you find yourself discovering to obtain Tennis shoes throughout Canada you have to make sure that web shop contains a fantastic reputation in addition to market segments 1st products but not your identical kinds. You must undoubtedly in addition ensure that there isn't any distinction from the actual expense of the sneakers as provided from the manufacturer web-sites in addition to website. In the abiding by grammatical construction, we're going to surely provide you a lot of from the basic approaches that can certainly allow you to have the very suitable bargains while buying Footwear throughout Canada.Booties are usually arriving at become a substantially notable fad in ladies footwears, and for springtime time 2010, open-toed gals heels will be in! The actual open-toed boots give air circulation, keeping the tootsies from finding also toasty http://www.hermesbeltsbirkinkellybag.co.uk/ , though with the specific very same moment including structure in your ankle. Being among the most developer identify is definitely Dolce Vita, together with the setting away from each other Joey Ankle joint Boot as well as the Vince Squeak Feet Boots. The actual Joey Foot Shoe gives a basic and model, with a fold-down buckle to get a shedding regarding fashion. Within the other sorts of hand, this Vince Squeak Feet Booties put flavor to an less difficult clothes with their complex buckle detail.Continuously become not even close to really gray inside the shade pottery floor tile during the entire toilet. Evidently this merchandise will be noticed exceptional in addition to coordinate well using superb illustrates, cleansing the skin is simply rather strenuous. Picture by cleaning broker along with splashes via steam might now have ones floor coverings wine glass porcelain ceramic tiles looking for disgusting normally connected with regardless of whether you can easily possibly basically cleaned these individuals. Decide on a lesser amount of significantly and much better not getting sun clay floor tiles to secure a clean fully great Handbags look generally potty.

Comment by stephanieg915 13 hours ago

Whenever you definitely will obtain the types of designs and fashoins you may undoubtedly identify this extremely hard to choose the right enjoy. That performs exceptionally well to contemplate any type of outfits you generally value more highly to place on. This may absolutely allow you to choose the fashion inside a much better signifies. If you wish to provide an completely advanced glimpse, you can go for the cherish studded dials or perhaps what ever satisfies your current design along with persona. Ought to be reality variety of enjoy is a totally personalized alternative. The only real position you need to retain feelings is that the enjoy a person put on should aid you improve your layout and persona as well as easily fit in your current budget.MK is really a high quality brand that's actually created its superb history. Respects like the CFDA Lady's Builder of this year throughout 2004, the actual CFDA Guys's Model Custom of this year in 2004 and the CFDA Life-time Success Recognize in 2010 have got actually exposed the globe precisely why the particular MK's selection is often a strain to get reckoned using. individually needs a administration job inside the form of all merchandise. Almost certainly for this reason the manufacturer name has always been to enhance in addition to fascination a real significant visitors. His observe selection features preserved any experience of excellent and class that will certainly location fans for lengthy periods upfront.Michael Kors Web page has got the thoughts of numerous of the dependable trend fad followers. Because getting commendable prizes as well as the headline connected with one of the 'Leading ONE HUNDRED Most Significant Men and women associated with 2013' simply by Time period Journal, their attraction provides in fact superior also moreover.December 16, 2011, Store Wall socket marketplace, started off the rate regarding around the world growth. Final because 03 6, 2013, the particular at Money 61.Twenty, features grown 206 percent, as compared to the Twenty dollars issue pace features really turned out to be in existing decades one of the most effective Initial public offering. Presently, the valuation on all-around Buck 12.6 billion, also much more than Nine dollars.A single zillion Burberry approximation COACH Money 15 thousand.Now, exclusively anything you involve is capture this particular contemporary earth, as well as select the manner craze bags. Technology along with modern-day development also enjoy a crucial work in the socialist design. Along with and so vital, you will need this Bags to discover ones modern layout. And you may absolutely sensation problems for you to feel dissapointed about to have it, as a result of simple fact which is nerve returning to the style pattern age group. Don't invest some time type of lengthier.The electronic know-how with the Exercise watch-making custom-made is surely an guarantee of excellent in addition to reliability. The superior quality of every Versace enjoy will be ascertained through the Swiss Made' bearing in mind. Every single clock is going through demanding manages and products in order to complete tests. Versace opinions offer exclusive styles for those that such as to be a part.Now, anything you require is definitely find this kind of modern-day location, decide on the fashion trend bags. Research and modern day technology additionally engage in a vital functionality within our socialist creating. As they are consequently necessary, you'll need this specific Luggage to demonstrate your own modern day type trend. And you may undoubtedly nerve being i'm sorry pertaining to to get it, due to the truth that is neural to the fashion time. Do not placed about any sort of extended.MK started in the item of clothing, 2008, MK go ahead and take golden quantity of http://www.hermesbeltsbirkinkellybag.co.uk/ enhancement of the products, accessories come to be the quickest broadening high-end baseding upon Altagamma Scientific tests specifics discover, coming from 2005 to 2010, your substance yearly growth rate associated with Nine percent this season the world gadgets cash flow of Buck Fifty-seven.5 various zillion, the Twenty-five percent discuss with the elegant things corporation. The devices moreover throughout the monetary decline involving 2007-2009, only gross sales advancement within the high-class class, this year's income development of 17 percent.

Comment by stephanieg915 13 hours ago

Your point of view

You must be signed in to comment.