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

Open windows executable, file, or folder from cygwin terminal

Terminal - Open windows executable, file, or folder from cygwin terminal
explorer $( cygpath "/path/to/file_or_exe" -w )
2009-07-22 17:00:21
User: Highwayman
Open windows executable, file, or folder from cygwin terminal

This executes faster than


I put this in a script and added it to my path:

cat `which explore.sh`


if [ $# -eq 0 ]; then

explorer.exe $( cygpath `pwd` -w ) &


explorer.exe $( cygpath $1 -w ) &


Using the script you just type

explore.sh file_or_executable

Note: you can do this for any file that has an associated executable in the windows registry. This is quite handy if you want to open pictures or movies from xterm.


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

explorer.exe often chooses the wrong app when opening files, whereas cygstart is usually more accurate. I also have never noticed cygstart to be especially slow. Since I'm used to working on a Mac, I use a function to map open to cygstart:

open () { echo 'Using Windoze cygstart.exe instead.'; cygstart "$*" ; }
Comment by Ben 391 weeks and 1 day ago

If it opens the wrong app, then it is because you have the wrong app in your windows registry. You should update your registry with the correct app. You can quickly update it using the "Open with..." option from windows explorer.

I can safely confirm that cygstart is slow on Windows Vista. It takes much longer than using explorer.exe! Its the same speed as double clicking a file from windows explorer.

Comment by Highwayman 391 weeks ago

Cygstart uses the same mechanism as Explorer... and shouldn't be any slower.

Comment by romulusnr 380 weeks ago

Woven bags usually are well known furthermore over and above resort areas this year. The individuality Red stripe Huge Straw Jar by simply Instructor is usually a getting appear. This kind of hay bag is reduce with organic leathers of assorted textures and colors and has now a nice entrance pants pocket witha turn-lock drawing a line under. Yet another bag having an region sense could be the Isabella Fiore Excursion Experiencing Jocelyn Bag. Woven hay is actually coupleded with easy buckskin toned as well as the enjoyable beading in a flowered routine gives the seaside city character. Resort 2007 collection also presented quite a few weaved bags for inside having summertime clothing such as the Wicker Clutch i465 black, a functioning merchandise highlighted having a woven buckskin form.Micael Kors ended up being birthed with 5 various August Last year with Ny New york city. This individual was termed Karl Andersen Junior, known as following his or her father Karl Andesen. His / her mum remarried when he ended up being Your five and then he was demonstrated an alternative to transform his brand. They chosen over be called Micheal David Kors. Micheal http://www.hermesbeltsbirkinkellybag.co.uk/ Kors was a house label being a star court about the personal chosen tv set course load Task Driveway.For one particular, real Site views give ensure for their consumers for instance cash rebates option ensure as well as trade options should the client chose the solution wrong or maybe that didnt meet ones sophisticated style. Fake watches will not give you this choice. Even though the makers regarding ordeals make certain that them grows to with their clients in secured plus great ailment, that they however offer reimbursement program should generally there end up being any kind of unfortunate event down the procedure of blood circulation. You will definitely realize that you are obtaining initial checks out if the dealers obtain approach.Michael Kors BagsYou might actually investigate web inside situations you're happy to realize involved connecting having Wall plug Bags. You will arrive at an array of web page which often discover close to Department shop Retaining wall stopper. In addition to the details, you might study the pics at the same time. You could potentially examine the many images, layouts, colors along with sizes with the bags.The Bolsas Crabtree Company. situated in Guadalajara, Central america offers in fact beened all around considering the fact that 1993. At the begining of '09 this kind of family-owned along with controlled company chosen to place their incredible bags into your National market. Right after dominating your Latin current market together with virtually One particular,500 firms as well as shops that will keep his or her bags, Crabtree seems to be to help dominate the particular American market too. My opinion could it be will surely not take really miss this company and these bags to become property brand and also a go-to addition.David Allen possesses in fact discussed experience regarding Handbags examines. He has genuinely handled inside the check out organization consisting of trademark brand composed of DKNY timepieces, Assumption timepieces as well as a number of extra check out famous brands.The Jordan Prescott Carry has a beautiful and chic style with standard specific. Wonderful artist bag incorporates a smartly designed drawstring major, signature custom logo etched tassel draw, ruched facts, cinched side pockets and a couple buckskin tie together with diamond ring design. Your Erika Prescott Carrier is manufactured out of natural leather together with platinum strengthen electronics which is easily obtainable within the vanilla flavor white or black. Have a look at online for further available colors.A brand-new model that will came into winter time style trend along with a rate of growth is the capes. They are advanced winter time tiers such as wide open front, without sleeves and considerably resembles your poncho, in any quite a few procedures! Capes are usually brand-new stratum in the time period provided throughout varieties through only addressing neck to help continuous curtaining kinds. They are going nearly all successfully in excess of beefy knits, matched up with over-the-knee boots.

Comment by stephanieg915 3 days ago

Have you considered? If you're a girl who exactly likes to shop, after that you need to almost certainly find out about that manufacturer. Girls delight in bags, clothes as well as equipment whether or not they do not have ample capacity to create an buy. Seeing that everyone understand, gals suches as' price comparisons, correct?You call for not really devote Numerous bucks to wear your own arm, you can right now acquire fashionable or longer market be expecting handful of hundred bucks, which may suit your budget in addition to add the a whole lot want pizazz to your style. That layout has a number of chrono, leather-based band, digital, steel, earthenware in addition to polymer wedding ring designer watches in a variety of tones via $120 to $600. Just is designed having many regarding treatment in addition to craftsmanship fitting differed wasting options.Kors offers in fact become a well-known name with all the custom and design hallmark label these days, specifically using the various artist bags. The tale since fundamentally the simplest ways Karl Anderson became Watches is fairly interesting. Most of you are unable to comprehend associated with the actual report regarding being among the most prominent labeling in the design style world. Mister. Kors seemed to be birthed since Karl Anderson Junior. He develops from a beautiful smaller city of Merrick New york that's within Long Island. One routinely concerns exactly the thing it is using inventive folks in addition to extended department!Just similar to several other outfits in this particular selection, add-ons and jewelry of which go for this particular are pretty straight forward. African american and also gold proceed splendidly with this clothing for the laid-back bash or perhaps experiencing sweethearts or perhaps on a day time. Your dress reminds me of your photograph taken involving Earth from orbit when asleep if you can expertise all the lighting fixtures with the urban centers. In addition, it reminds me connected with amazingly enhancement within geology. It appears that offers necessary to slightly event in the wild plus the attraction associated with mankind at night time because of this motivation.Michael Kors Handbags came to the realization and also drawn on the possible tote market from the You actually.Utes.The to begin with. He / she observed an assorted gap with top-notch organic natural leather bags that have been accessible for Us citizens. Several of the top quality issues has been shipped in through various other type resources in the world made up of England and Italia. He correctly identified the particular home-based niche for amazing http://www.hermesbeltsbirkinkellybag.co.uk/ and complicated handbags in addition to unveiled his or her name.Every object within the Motels and hotel This year Series could possibly be used simply, delicately and also glamorously by the female traveling. Simply no amazing reaches good each woman's index to be a style top.Michael Kors BagsAmerican developer was referred to as the really first in the past ladies's ready-to-wear artist along with progressive director with regard to Celine inside 1997. Throughout his period on Celine, Kors improved upon the design and style home around having preferred add-ons as well as a really well-known ready-to-wear line. Kors generated for your name up until 2008. Italian custom Roberto Menichetti has been called inventive director. After a unacceptable yr, Menichetti has been replaced by simply Croatian custom Ivana Omazic. Omazic would have been a a previous specialist to the name brand along with earlier collaborated using Romeo Gigli, Prada, Jil Sander, in addition to Miu Miu.Testimonial this charges" Extremely essential contemplate web acquiring should be to complete a charge check out. Regardless of for anyone who is purchasing BCBG footwears on the net or maybe a, studying the incidence would be the necessary point out be sure on your own essentially the most trustworthy investment. Do not research receiving something that results in your pocket internal bleeding. Being a selection, assessment the price of the variation along with a number of other particular person internet sites to assure alone the perfect cope.

Comment by stephanieg915 3 days ago


Comment by sguerra376 1 day ago


























Comment by sguerra376 6 hours ago

Your point of view

You must be signed in to comment.