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.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.

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



Revert all modified files in an SVN repo

Terminal - Revert all modified files in an SVN repo
svn st | grep -e '^M' | awk '{print $2}' | xargs svn revert
2010-08-11 14:24:05
User: ethanmiller
Functions: awk grep xargs
Revert all modified files in an SVN repo


There are 3 alternatives - vote for the best!

Terminal - Alternatives
svn status | grep "^M" | while read entry; do file=`echo $entry | awk '{print $2}'`; echo $file; svn revert $file; done
2012-06-17 16:01:06
User: wsams
Functions: awk echo grep read

This command allows you to revert every modified file one-by-one in a while loop, but also after "echo $file;" you can do any sort of processing you might want to add before the revert happens.

for file in `svn st | awk '{print $2}'`; do svn revert $file; done
svn revert .

Know a better way?

If you can do better, submit your command here.

What others think

http://www.mulberry-outlet.org mulberry outlet

http://www.ray-ban--sunglasses.com ray ban sunglasses

http://www.coach-factoryoutlet.net coach factory outlet

http://www.florence-soriano-gafiuk.fr Nike Air Max 2017

http://www.australiamichaelkors.com michael kors australia

http://www.pradashoes.net Prada Shoes - Official

http://www.generationdressing.fr Nike Air Max 90 Mes

http://www.pandora-rings.co.uk pandora uk

http://www.omega--watches.us omega watches

http://www.timberland-boots.co.uk timberland boots

http://www.cheaprayban.us cheap ray ban

http://www.pandoraring.us pandora ring

http://www.tory-burch-outlet.net tory burch outlet

http://www.qiqifashion.us/ qiqi fashion

http://www.michael-korsaustralia.com michael kors australia

http://www.appmyiphone.de Nike Schuhe Damen

http://www.michaelkors-australia.net michael kors australia

http://www.bestonlineshopping.us black friday deals

http://www.officialouisvuitton.com official louis vuitton

http://www.schuheil.de Nike Schuhe Herren

http://www.nikejordan.co Nike Jordans

http://www.burberryoutlets.ca burberry outlet

http://www.thenorthfaceoutlet.co north face outlet

http://www.asics-gel-kayano.com gel kayano

http://www.pandora-jewelry.us.org pandora jewelry sale

http://www.louisvuittoncenter.us Louis Vuitton Outlet

http://www.hermesoutlet.co hermes outlet

http://www.bellezze-vip.com michael kors

http://www.soccer-store.us soccer store

http://www.kate-spade-outlet.ca kate spade outlet

http://www.pandora-rings.com pandora rings uk

http://www.pumashoes.net puma shoes

http://www.puma-shoes.ca puma shoes

http://www.jimmychoooutlet.co jimmy choo outlet

http://www.michael-kors.uk michael kors uk

http://www.chaneloutlet.ca/ chanel outlet

http://www.apartment-villa.net timberland boots

http://www.dvapr.com Air Max 1 Homme

http://www.louis--vuitton.co louis vuitton us

http://www.kay-jewelers.us Kay Jewelers - Official

http://www.chrome-store.com.au chrome store

http://www.michael-kors.co.uk michael kors uk

http://www.nike-outlet.co.uk nike outlet

http://www.prada-sunglasses.us Prada Sunglasses - Official

http://www.birkenstockcanada.ca birkenstock canada

http://www.telligence.fr Nike Blazer Femmes

http://www.annuairevoitures.fr Nike Air Max 180

http://www.therca.org The Retail Compliance Association

http://www.bestwebsitedirectory.net articles

http://www.nenene.fr Nike Free

http://www.billigeschuhesale.de Kaufen Nike Air Max 1

http://www.pandoragifts.co.uk pandora uk

http://www.yeezyboost350.co.uk yeezy boost 350 shoes

http://www.ray-ban-sunglasses.net ray ban sunglasses

http://www.mizunoshoes.us Wave Prophecy 2 Shoes

http://www.orelies-events.fr Air Jordan Homme

http://www.raybannewwayfarer.us ray ban wayfarer sunglasses

http://www.myhermes.org.uk myhermes parcel shop

http://www.nike-chaussures.fr Air Max 90 Femme

http://www.clearanceoutlet.us/ clearance

http://www.michael-kors.co michael kors

http://www.raybanframes.us ray ban frames

http://www.katespadenewyorkstore.com kate spade new york store

http://www.pumaoutlet.us puma oulet sale

http://www.tory-burch-outlet.com tory burch outlet

http://www.obatkuatku.us Obat Kuat Sex

http://www.louisvuittonbe.com louis vuitton

http://www.chaneloutlet.net/ chanel outlet

http://www.underarmouroutlet.us under armour outlet

http://www.ray-ban-sunglasses.co.uk ray ban uk

http://www.eggcam.us business blog

http://www.eznara.com China wholesale

http://www.yeezyboost350.us yeezy boost 350

http://www.paylessshoes.org payless shoes

http://www.thefreeporntubes.com Nike Free Run

http://www.jared-jewelry.us Jared Jewelry - Official

http://www.nikehuarache.co nike huarache shoes

http://www.fulamshoes.com fulam shoes

http://www.coach-outlet.cc official coach outlet site

http://www.michael-kors-outlet.com michael kors outlet

http://www.katespadeoutlet.ca kate spade canada

http://www.raybanjustin.us ray ban justin

http://www.kate-spade-handbags.com kate spade handbags

http://www.engagement--rings.us Engagement Rings - Official

http://www.kate-spadeoutlet.ca kate spade outlet

http://www.joebuy.com/womens-autumn-n-witer-clothing-c-38_173.html Wholesale womens autumn winter clothing

http://www.louboutinshoes-uk.co.uk louboutin shoes

http://www.clbshoessale.org clb shoes sale

http://www.spidermangames.us louis vuitton outlet

http://www.nike-outlet.net nike outlet

http://www.mulberryoutlet.co mulberry outlet

http://www.burberry-outlet-coupon.com burberry outlet coupon

http://www.francefifa.fr Nike Boots

http://www.pandoranecklace.co.uk pandora necklace

http://www.dvdv.us black friday deals online

http://www.mk-bags.us michael kors outlet

http://www.pandoracharms.com.au/ pandora charms

http://www.onlineoyun.co Online Oyun

http://www.katespadeoutlet.com.co kate spade outlet

http://www.school-bags.org school bags online

http://www.coach-handbags.us coach handbags sale

http://www.coach-outletonline.net coach outlet online

http://www.rb-sunglasses.us ray ban sunglasses

http://www.spadesonline.us kate spade

http://www.nbastore.us.com nbastore

http://www.louisvuitton-moda.com Louis Vuitton Outlet

http://www.michaelkors-australia.com michael kors australia official

http://www.mostfungames.us fun games for kids

http://www.prada-shoes.net Prada Shoes - Official

http://www.pandoraoutlet.co pandora outlet

http://www.burberry-outletsale.us burberry outlet sale

http://www.coach-factory-outletonline.us coach factory outlet online

http://www.michael-kors.info michael kors

http://www.snow-boots.org.uk snow boots uk

http://www.dreamland-jewelry.us Dreamland Jewelry - Official

http://www.birkenstockoutlet.co birkenstock outlet

http://www.michael-kors-australia.net michael kors australia

http://www.pandora-australia.com.au pandora australia

http://www.sunglass-hut.us sunglasses hut

http://www.oakleyoutlet.net oakley outlet

http://www.louisvuittononline.us Louis Vuitton Online

http://www.jimmychooheels.net jimmy choo heels

http://www.coach-factoryoutlet.us coach factory outlet

http://www.rb-shop.us ray ban shop

http://www.rayban-glasses.us ray-ban glasses

http://www.smartstar.us ugg boots



Comment by adc580888 7 weeks and 6 days ago

Your point of view

You must be signed in to comment.