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.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.
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

drop first column of output by piping to this

Terminal - drop first column of output by piping to this
tr -s ' ' | cut -d' ' -f2-
2015-05-08 12:47:09
User: sesom42
Functions: cut tr
6
drop first column of output by piping to this

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
awk '{ $1="";print}'
awk '{for(i=2;i<=NF;i++) printf("%s%s",$i,(i!=NF)?OFS:ORS)}'
perl -pE's/(\S+\s*){0,1}//'
2015-05-09 15:14:58
User: pung96
Functions: perl
1

An advantage is that this doesn't modify remained string at all. One can change {0,1} with {0,n} to drop several columns

Know a better way?

If you can do better, submit your command here.

What others think

http://www.babyliss-pros.com/, http://www.nike-shoesfactory.us/, http://www.adidas-shoes.nl/, http://mavericks.nba-jersey.com/, http://www.toms-shoe.us.org/, http://www.cheap-baseballbats.us/, http://www.designer-handbagsoutlet.us.com/, http://www.beatsbydre.com.co/, http://www.oakley-sbocco.it/, http://hawks.nba-jersey.com/, http://www.polos-ralphlauren.com.co/, http://titans.nfljersey.us.com/, http://www.thenorthfacejackets.fr/, http://www.hollisteronlineshop.com.de/, http://www.niketnrequinpaschers.fr/, http://www.soccershoes.us.com/, http://www.raybans-outlet.nl/, http://www.coachoutlet-online.com.co/, http://www.coach-outlet.store/, http://www.lauren-ralphsoutlet.co.uk/, http://www.jordan.com.de/, http://www.ok-em.com/, http://www.coachsoutletonline.in.net/, http://longchamp.blackofriday.com/, http://www.toryburch-shoesoutlet.com/, http://www.supra-footwear.net/, http://www.mizuno-running.net/, http://www.ralphlauren-polos.com.co/, http://www.coachfactory.shop/, http://www.ralphlaurens.ca/, http://www.burberry-store.com/, http://www.michael-kors.in.net/, http://www.swarovski-jewelrys.com/, http://www.michaelkorsoutlet.ar.com/, http://www.salvatore-ferragamos.com/, http://www.bcbg-dresses.net/, http://www.co-aol.com/, http://www.asicsoutlet.us.org/, http://www.pradahandbags.net.co/, http://redskins.nfljersey.us.com/, http://www.swarovski-australia.com.au/, http://www.versace-outlet.com/, http://www.cheapjerseys.net.co/, http://www.nike-shoescanada.ca/, http://www.beatsbydrdrephone.com/, http://www.burberry-outlets.org.uk/, http://www.nike-air-force.de/, http://www.burberry-outlet.in.net/, http://www.toms-shoes-outlet.us/, http://www.ray-bansoutlet.com.co/, http://steelers.nfljersey.us.com/, http://www.omegawatches.in.net/, http://www.north-face.com.co/, http://www.toms-shoesstore.com.co/, http://www.nikeairmax-90.net/, http://www.new-balanceoutlet.org/, http://www.converse.net.co/, http://www.mcmhandbags.com.co/, http://www.mcms-handbags.com/, http://www.nike-store.in.net/, http://buccaneers.nfljersey.us.com/, http://www.christianlouboutinoutlet.net.co/, http://www.nikeshoesoutlet.org.uk/, http://www.polo-ralphlaurens.us.com/, http://www.longchampoutlet.com.co/, http://falcons.nfljersey.us.com/, http://celtics.nba-jersey.com/, http://www.nike-shoesoutlet.com/, http://www.nikerosherun.us/, http://www.giuseppes-zanotti.com/, http://www.bcbg-maxazria.ca/, http://www.timberlandbootsoutlet.us.com/, http://www.juicycouture.com.co/, http://www.michael-korsoutlet.co.uk/, http://www.outlet-burberry.net/, http://www.new-balance-schuhe.de/, http://lions.nfljersey.us.com/, http://www.nike-store.com.de/, http://www.ferragamoshoes.in.net/, http://www.tnf-jackets.us/, http://www.longchamp.com.co/, http://ravens.nfljersey.us.com/, http://warriors.nba-jersey.com/, http://www.jordanshoes.net.co/, http://www.nike-rosheruns.nl/, http://www.tommyhilfigers.nl/, http://www.polo-ralph-lauren.de/, http://seahawks.nfljersey.us.com/, http://www.new-balancecanada.ca/, http://www.jimmy-choosshoes.com/, http://www.valentino-shoesoutlet.us.com/, http://coach-outlet.tumblr.com/, http://www.oakleysunglasses-canada.ca/, http://www.hollisters-canada.ca/, http://thunder.nba-jersey.com/, http://www.burberrybags.net.co/, http://www.rolexwatches-canada.ca/, http://www.nike-mercurial.com/, http://www.michaels-korsoutlet.co.uk/, http://kings.nba-jersey.com/, http://www.oakleys-outlets.net/, http://www.michaelkorsoutlet-online.ar.com/, http://www.instylers.us/, http://www.the-northfaces.us.com/, http://www.omegas-relojes.es/, http://www.ralph-laurenoutletonline.in.net/, http://www.the-northface.com.de/, http://www.coach-outlets.net.co/, http://www.truereligion-outlet.us.org/, http://www.nikefree-run.net/, http://coachoutlet.euro-us.net/, http://www.christianlouboutin-shoes.ca/, http://www.asics-outlets.com/, http://www.ralphlaurens-outlet.co.uk/, http://www.oakleys-sunglasses.com.co/, http://www.tommy-hilfigers.de/, http://www.swarovski-crystals.us.com/, http://www.tommy-hilfigers.in.net/, http://www.cheap-rayban.com.co/, http://www.swarovski-online-shop.de/, http://www.juicycoutureoutlet.net.co/, http://www.nba-shoes.com/, http://www.roshe-run.co.uk/, http://www.philipp-plein.us.com/, http://colts.nfljersey.us.com/, http://www.michaelkors-outletonline.cc/, http://www.cheap-jerseys.mex.com/, http://www.armani-exchange.in.net/, http://www.eyeglasses-outlet.com/, http://www.cheap-rolex-watches.org.uk/, http://www.ray-banssale.com/, http://www.burberry-outlets-online.org.uk/, http://www.tommys-hilfiger.com/, http://www.burberry-outletcanada.ca/, http://www.montblanc-pens-sale.com/, http://www.burberry-handbags.net.co/, http://www.prada-bagsoutlet.com/, http://www.nikeair-max.ca/, http://www.converseschuhe.com.de/, http://www.jimmy-chooshoes.com/, http://www.tory-burch.us.org/, http://www.ralph-laurenoutletonline.com/, http://www.tommyhilfigerca.ca/, http://www.adidas-store.net/, http://timberwolves.nba-jersey.com/, http://www.converses-outlet.com/, http://www.soft-ballbats.com/, http://azcardinals.nfljersey.us.com/, http://www.christian-louboutins.co.uk/, http://raptors.nba-jersey.com/, http://www.cheapjerseys.us.org/, http://browns.nfljersey.us.com/, http://www.ray-bans.net.co/, http://oakley.blackofriday.com/, http://www.long-champ.com.de/, http://www.converse-shoes.net/, http://www.lacoste-store.com/, http://www.raybanoutlet.ca/, http://www.nikeshoes.de/, http://www.michael-kors.shop/, http://www.swarovski-canada.ca/, http://clippers.nba-jersey.com/, http://www.hermes-bags.net/, http://www.oakleys-outlet.com.co/, http://bengals.nfljersey.us.com/, http://www.iphone-cases.net/, http://www.p90xs-workout.com/, http://www.long-champbags.com/, http://www.michaels-kors.us/, http://www.philipp-pleins.com/, http://nets.nba-jersey.com/, http://www.beatsheadphone.in.net/, http://www.oakley--sunglasses.com.au/, http://nuggets.nba-jersey.com/, http://www.michael-kors.com.es/, http://www.adidas-shoes.es/, http://www.oakley-sunglassessale.com/, http://celine.blackofriday.com/, http://www.pandorajewellery.com.au/, http://www.barbour.in.net/, http://www.montrespaschers.fr/, http://www.supra-shoes.org/, http://www.raybans.com.de/, http://www.women-clothes.com/, http://www.tommy-hilfiger.net.co/, http://pelicans.nba-jersey.com/, http://76ers.nba-jersey.com/, http://www.toms-outlets.us.com/, http://www.rolexwatchesforsale.us.com/, http://www.cheap-jordans.net/, http://www.airhuaraches.co.uk/, http://www.rosheruns.us/, http://broncos.nfljersey.us.com/, http://www.mbt-outlet.com/, http://www.coach-outletonline.ca/, http://www.calvin-kleins.in.net/, http://www.timberlandspaschere.fr/, http://www.cheap-michaelkors.com.co/, http://www.prada-shoes.com.co/, http://www.nike-roshe-run.de/, http://www.cheapthomas-sabos.co.uk/, http://ralphlauren.blackofriday.com/, http://www.adidas-shoes.in.net/, http://www.nba-jersey.com/, http://www.soccers-shoes.net/, http://chargers.nfljersey.us.com/, http://www.longchamp-bags.us.com/, http://www.rolex-watches.us.com/, http://www.oakley-sunglass.net.co/, http://www.nike-schoenen.co.nl/, http://packers.nfljersey.us.com/, http://www.cheap-mlbjerseys.us.com/, http://www.nikeair-max.es/, http://www.hollisters.us.com/, http://coach.blackofriday.com/, http://www.hoodies-store.com/, http://www.hermesoutlet.shop/, http://www.oakleys.org.es/, http://lakers.nba-jersey.com/, http://www.ray-bans-sunglasses.net/, http://bucks.nba-jersey.com/, http://www.chiflatirons.in.net/, http://www.airmax.com.se/, http://www.thenorth-face.com.co/, http://www.salomonshoes.com.de/, http://www.chrome-hearts.com.co/, http://bulls.nba-jersey.com/, http://www.the-northfacejackets.net.co/, http://www.air-maxschoenen.nl/, http://pacers.nba-jersey.com/, http://www.hugo-boss.com.co/, http://www.tomsshoes-outlet.us.org/, http://www.swarovskissale.co.uk/, http://www.the-northface.ca/, http://www.rolex-watchoutlet.com/, http://www.nike-airmaxs.fr/, http://dolphins.nfljersey.us.com/, http://cavaliers.nba-jersey.com/, http://www.nike-airmax.us.com/, http://hornets.nba-jersey.com/, http://rams.nfljersey.us.com/, http://cowboys.nfljersey.us.com/, http://www.pulseraspandora.com.es/, http://www.cheapnhljerseys.us.com/, http://www.scarpehogans.it/, http://www.chiflatiron.net.co/, http://www.nikeshoes.org.es/, http://bears.nfljersey.us.com/, http://www.nikeairmax.com.de/, http://www.fendi-outlet.in.net/, http://www.truereligion-outlet.com.co/, http://www.cheap-watches.in.net/, http://www.hollister.com.se/, http://www.raybans-outlet.org.uk/, http://www.raybans-cher.fr/, http://www.handbagsoutlet.in.net/, http://www.dsquared2-outlet.com/, http://www.mk-outletonline.us/, http://www.coach-factory.com.co/, http://www.pandora-jewelry.com.de/, http://michaelkors.blackofriday.com/, http://www.toryburch-outlet.com.co/, http://www.burberry-outlets.net.co/, http://www.nikeairmax2015.org/, http://www.nikefree5.net/, http://www.bottega-venetasoutlet.com/, http://www.polos-outletstore.net/, http://saints.nfljersey.us.com/, http://www.oakleys-outlet.in.net/, http://www.iphonecases.net.co/, http://www.thomas-sabos.com.de/, http://www.retro-jordans.net/, http://www.michael-korsoutlet.cc/, http://www.michaelkors.co.nl/, http://www.adidasshoes.com.se/, http://www.bottega-bags.com/, http://knicks.nba-jersey.com/, http://www.coachoutlet-inc.net/, http://www.marc-jacobs.us.com/, http://www.rayban-sunglasses.co/, http://magic.nba-jersey.com/, http://www.coachblackfriday.com/, http://www.toryburchsale.com.co/, http://www.adidas-shoes.ca/, http://spurs.nba-jersey.com/, http://www.designer-handbags.cc/, http://www.oakley-outletonline.com.co/, http://www.michaelkors-store.us.org/, http://www.marcjacobs-outlet.com/, http://www.nike-air-max.com.au/, http://michaelkors.euro-us.net/, http://www.barbour-jackets.com/, http://www.raybans-sunglasses.net.co/, http://bills.nfljersey.us.com/, http://www.the-northfaces.net.co/, http://www.kates-spade.com/, http://www.mcm-handbags.org/, http://www.poloralphlaurenoutlet.net.co/, http://www.louboutin.jp.net/, http://www.longchampbags.com.co/, http://www.oakley-outlet.fr/, http://www.hoganshoes.org.uk/, http://www.givenchy.com.co/, http://rockets.nba-jersey.com/, http://www.basketballshoes.com.co/, http://suns.nba-jersey.com/, http://www.nhl-jerseys.net/, http://www.ralphslaurenoutlet.us.com/, http://www.reeboks.com.de/, http://www.michaelkorsoutlet.se/, http://www.vans-shoes.co.uk/, http://www.zcoachoutlet.com/, http://www.barbour-jackets.us.com/, http://giants.nfljersey.us.com/, http://wizards.nba-jersey.com/, http://www.toms-outletonline.com.co/, http://rayban.blackofriday.com/, http://www.air-huaracheshoes.co.uk/, http://www.timberland-boots.com.co/, http://vikings.nfljersey.us.com/, http://www.oakley-sunglasses2017.com/, http://www.new-balanceshoes.es/, http://www.ralphs-laurenpolo.co.uk/, http://www.pandoras-charms.org.uk/, http://www.michael-kors-outlet.us.org/, http://www.christian-louboutin.jp.net/, http://www.oakleys-2017.in.net/, http://www.mlb-jerseys.us.com/, http://trailblazers.nba-jersey.com/, http://www.michael-korsbags.com.co/, http://www.nike-outlet.us.org/, http://www.puma-shoes.de/, http://www.nikeshoes-outlet.com/, http://www.coachfactory.cc/, http://www.hogans.com.de/, http://heat.nba-jersey.com/, http://www.oakleys2017.com/, http://www.nike-rosherun.com.es/, http://www.nike-airmax.com.de/, http://www.long-champoutlet.com/, http://www.hollister-clothing.com.co/, http://www.oakleys-frame.com.co/, http://www.nike-skors.com.se/, http://www.michaelkors.so/, http://www.cheap-nike-shoes.net/, http://www.celine-bags.com/, http://www.michael-kors-australia.com.au/, http://www.raybansbocco.it/, http://www.michael-kors.cc/, http://www.nikefree-runs.org.uk/, http://www.hollisterclothings-store.com/, http://www.timberlandshoes.net.co/, http://texans.nfljersey.us.com/, http://www.ralph-laurens.org.uk/, http://www.raybans-outlet.cc/, http://www.ferragamos.us.com/, http://www.nfl-jersey.us.org/, http://49ers.nfljersey.us.com/, http://www.adidas-schuheonline.de/, http://www.burberry-handbagssale.net.co/, http://www.jerseys-store.com/, http://www.puma-shoesoutlet.com/, http://www.toms-outletstore.com/, http://www.air-yeezys.com/, http://www.burberrys-outletonline.com/, http://www.airmax-shoes.com/, http://www.nike-max.fr/, http://www.pandorajewelry.top/, http://www.christianlouboutinshoesoutlet.org/, http://www.vibram-fivefingers.in.net/, http://www.coach-factoryoutlet.net.co/, http://www.ray-bans.co.uk/, http://www.levisjeans.com.co/, http://www.nfljersey.us.com/, http://www.nike-huaraches.nl/, http://www.nikestoreoutlet.us/, http://www.raybans.org.es/, http://www.ralph-laurenpolos.co.uk/, http://patriots.nfljersey.us.com/, http://www.jordan-retro.org/, http://www.rayban-sunglasses.fr/, http://www.raybans-outlet.com.co/, http://www.horlogesrolexs.nl/, http://www.nike-airmaxnc.co.uk/, http://www.beats-by-dre.com.co/, http://www.truereligions.net/, http://panthers.nfljersey.us.com/, http://www.kate-spades.com.co/, http://www.michaelkors-canadaoutlet.ca/, http://www.uhren-stores.de/, http://chiefs.nfljersey.us.com/, http://www.michaelkors-ins.com/, http://www.ralphlaurenonlineshop.de/, http://www.pradas.com.de/, http://www.the-north-face.org.uk/, http://www.michaelkors.com.de/, http://www.toms--outlet.com.co/, http://www.nike-free-runs.de/, http://www.vansschuhe.com.de/, http://www.katespadeoutlet.gb.net/, http://www.cheapshoes.net.co/, http://www.michaelkorsoutletonline.net.co/, http://www.burberry-bags.net/, http://www.dsquared2s.com/, http://www.nikefreeshoes-inc.co.uk/, http://www.soccer-shoesoutlet.com/, http://www.cheapoakleyss.com/, http://www.replica-handbags.com.co/, http://eagles.nfljersey.us.com/, http://www.vans-shoesoutlet.com/, http://www.christian-louboutins.in.net/, http://www.michaelkors-bags.us.org/, http://www.newbalance-shoes.org/, http://www.ecco-shoes.us.com/, http://www.wedding-dresses.cc/, http://www.oakleys.mex.com/, http://www.ralphlauren-au.com/, http://jazz.nba-jersey.com/, http://www.christian-louboutinshoes.in.net/, http://www.true-religions.com/, http://grizzlies.nba-jersey.com/, http://www.michael-kors.net.co/, http://www.newoutletonlinemall.com/, http://www.hermes-birkinoutlet.net/, http://www.under-armouroutlet.com/, http://www.polos-outlets.com/, http://pistons.nba-jersey.com/, http://www.cheap-raybansoutlet.com.co/, http://www.giuseppezanotti.com.co/, http://www.nike-skos.com/, http://airmax.misblackfriday.com/, http://www.burberryoutlet-sale.com.co/, http://www.burberryonlineshop.de/, http://coach.euro-us.net/, http://www.true-religion.com.co/, http://www.mcmbackpacks.net/, http://www.tommyhilfigers.de/, http://www.hollister-store.com/, http://www.prada-outlet.com.co/, http://raiders.nfljersey.us.com/, http://www.pandoracharms-canada.ca/, http://www.nike-shoes.com.co/, http://www.oakleys.com.de/, http://www.omega-watches.com.co/, http://www.katespades.com.co/, http://www.barbour-factory.net/, http://www.adidassuper-star.de/, http://www.tracksuits-store.com/, http://jets.nfljersey.us.com/, http://www.true-religion-jeans.com.co/, http://www.ralph-laurenpolosoutlet.com/, http://www.barbours.us.com/, http://www.mk-com.com/, http://www.ed-hardy.us.com/, http://www.ferragamo.net.co/, http://www.ralphs-laurenpolos.net/, http://www.mcm-bags.us.org/, http://www.woolrich-clearance.com/, http://jaguars.nfljersey.us.com/, http://www.air-jordanshoes.us/

Comment by ylq 31 weeks and 2 days ago

Your point of view

You must be signed in to comment.