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

Show LAN IP with ip(8)

Terminal - Show LAN IP with ip(8)
ip route show dev eth0 | awk '{print $7}'
2009-05-26 20:29:54
User: P17
Functions: awk route
2
Show LAN IP with ip(8)
ip address show | grep eth0 | sed '1d' | awk '{print $2}'

does the same, but shows network-prefix.

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

ip address show dev eth0 | awk '/inet / {print $2}'

Comment by MRobvious 434 weeks ago

http://www.michaelkorsoutlet-online.org

http://www.nikefreeflyknit.name

http://www.true-religionjeansoutlet.in.net

http://www.eccoshoes.us

http://www.michaelkorsoutletonlineclearance.in.net

http://www.canadagooseoutlets.us.com

http://www.adadassupercolor.com

http://www.thenorthfaceoutlet.com.co

http://www.kate-spadeoutlet.in.net

http://www.coachfactoryonlineoutlet.com.co

http://www.canadagoosejacketsuk.co.uk

http://www.coachpursesoutlet.in.net

http://www.canadagoose-outlet.name

http://www.katespade-outlet.us

http://www.canada-goosejackets.org.uk

http://www.designerhandbags.net.co

http://www.true-religionjeansoutlet.us.com

http://www.ugg-sale.org.uk

http://www.cheap-uggs.us.com

http://www.cheap-jerseyswholesale.us

http://www.hollistersaleuk.me.uk

http://www.moncleroutletjackets.us

http://www.oakleysunglassesoutlet.in.net

http://www.monclerjackets-uk.co.uk

http://www.birkenstocks.us.com

http://www.red-bottoms.us.com

http://www.doudounemonclerpascher.fr

http://www.coachoutletus.us.com

http://www.uggsaustralia.fr

http://www.cheapnfljerseys-wholesale.us

http://www.airmaxoutletsaleus.com

http://www.canadagooseuk.co.uk

http://www.adadassuperstar.com

http://www.adidasoutlet.us.com

http://www.pandora-charms.me.uk

http://www.michaelkors-outlet.us.org

http://www.valentino.in.net

http://www.nike-blazerlow.fr

http://www.redbottomshoes.in.net

http://www.airforce1-nike.fr

http://www.discountnikeshoessc.org

http://www.adidas-shoes.me.uk

http://www.cheapuggsale.us.com

http://www.guccioutlets.us.org

http://www.michaelkorshandbagsuk.me.uk

http://www.christianlouboutinoutletsale.org

http://www.vansshoes.in.net

http://www.hollisterclothingstore.com.co

http://www.fitflops.us

http://www.michaelkors-purses.us.com

http://www.true-religion.us.com

http://www.outletlongchamp.us

http://www.polooutlet.com.co

http://www.christianlouboutinshoes.us.org

http://www.louisvuittonoutletus.us.com

http://www.outletuggboots.us.com

http://www.cheap-nbajerseys.us.com

http://www.katespadehandbags.net.co

http://www.ralphlauren-outlet.com.co

http://www.tomsshoes.us.com

http://www.uggs-pas-cher.fr

http://www.pandora-bracelet.us

http://www.bottegaveneta.in.net

http://www.uggaustraliaoutlet.us.com

http://www.kobeshoes.name

http://www.oakley--sunglasses.net.co

http://www.coach-outletonlines.us.com

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

http://www.coachoutletstoreonlineclearances.in.net

http://www.toryburchoutletstores.in.net

http://www.uggsale.us.com

http://www.truereligionoutlet.com.co

http://www.michaelkorsoutletclearance.in.net

http://www.yeezyboost-350.us.com

http://www.truereligionjeansoutlet.name

http://www.cheapnhljerseyswholesale.us

http://www.pandorajewelryoutlet.org

http://www.hermesbirkin.in.net

http://www.hugobossoutlet.name

http://www.buyredbottomcheapshoesonline.com

http://www.niketrainers.com.co

http://www.cheapjordans.com.co

http://www.canadagooseoutlet.net.co

http://www.cheapjordan-shoes.in.net

http://www.uggsoutletofficial.us.com

http://www.cheapraybans.com.co

http://www.uggscanada.ca

http://www.michaelkorspurses.in.net

http://www.coachfactory-outletstore.us.com

http://www.moncleroutlet.in.net

http://www.yeezyboost.us.com

http://www.fitflops.in.net

http://www.adidas-shoes.us.com

http://www.jordan-femmepascher.fr

http://www.michaelkorshandbag.us.com

http://www.nikefreerun.name

http://www.hollisterclothing.org

http://www.raybansunglasses.net.co

http://www.coachoutlets.us.org

http://www.christianlouboutin.us.org

http://www.michaelkorshandbags-outlet.us.org

http://www.fitflopssaleclearance.com

http://www.airjordanretro.us

http://www.christianlouboutinshoesoutlet.com

http://www.oakley.nom.co

http://www.christianlouboutinshoes.org.uk

http://www.michaelkorsoutletonlineclearance.us.com

http://www.cheapbasketballshoes.us

http://shop.uggmalls.uk

http://www.nike-store.us.com

http://www.coach-outletonline.us.org

http://www.adidas-nmd.us.com

http://www.versaceshoes.in.net

http://www.kevindurantshoes.us

http://www.coachfactoryoutletonline.in.net

http://www.christianlouboutinoutlet.us

http://www.michaelkors-outletsale.us.com

http://www.wwwlouisvuittonoutlet.us.com

http://www.raybans.org.uk

http://www.abercrombieandfitch.in.net

http://www.cheapraybansunglasses.name

http://www.adidasyeezyshoes.us.com

http://www.abercrombieandfitchoutlet.name

http://www.coachfactoryoutlet-online.in.net

http://www.celineoutlet.us

http://www.longchampbagsuk.org.uk

http://www.coach--outlet.us.com

http://www.uggscheap.us.com

http://www.louisvuittonoutlet.ca

http://www.louisvuitton-sac-pascher.fr

http://www.discountoakleysunglasses.com.co

http://www.moncler-outlet.us.com

http://www.cheapuggsoutlets.us.com

http://www.raybansunglassesdiscount.com.co

http://www.nikehuarache.com.co

http://www.timberlandbootsoutlet.name

http://www.conversetrainer.co.uk

http://www.katespadehandbags.org.uk

http://www.michaelkors-outlet.us.com

http://www.coachoutlet.in.net

http://www.ysl-outlet.com

http://www.airmax90.org

http://www.canada-goose-jackets.ca

http://www.reebokshoes.in.net

http://www.lacosteshoes.us

http://www.coach-outletonline.eu.com

http://www.ralph-lauren-pas-cher.fr

http://www.tomsoutletstores.in.net

http://www.canadagoosejacketscanadagoose.us.com

http://www.toms.in.net

http://www.coachoutletstoreonline.com.co

http://www.polooutlets.us.com

http://www.nfl-jerseys-wholesale.us.com

http://www.cheap-ugg-boots.us.com

http://www.pandoracharms.com.co

http://www.louisvuittonhandbagsuk.me.uk

http://www.uggsboots.org.uk

http://www.edhardy-outlet.name

http://www.louisvuitton-outlet-online.us.com

http://www.michaelkors-handbags.us.org

http://www.boots-ugg.us.com

http://www.coachoutletonlinecoachfactoryoutlet.us.com

http://www.jimmychoo.in.net

http://www.timberlandbootsoutlet.us

http://www.longchamphandbags.us

http://www.longchamp-handbags.us

http://www.pandorajewelryoutlet.name

http://www.polooutlet.in.net

http://www.pandorauk.org.uk

http://www.converseshoes.in.net

http://www.michaelkors-handbags.uk

http://www.armani-exchange.us

http://www.ferragamoshoes.cc

http://www.christianlouboutinshoes.us

http://www.fitflopssaleclearance.net

http://www.cheapoakleyssunglasses.com.co

http://www.longchampbags.uk

http://www.uggs-australia.it

http://www.gucci--borse.it

http://www.michael-korshandbags.us.com

http://www.airjordan-uk.org.uk

http://www.michaelkorsoutletclearances.us.com

http://www.oakley--sunglasses.us.org

http://www.nikeshoes.us.com

http://www.yeezyboost350.me.uk

http://www.burberry-outlet-canada.ca

http://www.birkenstocksandals.org.uk

http://www.omegawatches.name

http://www.levisjeans.name

http://www.cheaprolexreplicawatches.us

http://www.coach-outlets.us.com

http://www.nikecortez.com.co

http://www.michaelkorsoutletonline.com.co

http://www.uggsboots.fr

http://www.pradaoutlet.name

http://www.canadagoosejacketscanadagooseoutlet.us.com

http://www.ralphlaurenoutlet.us.org

http://www.cheapmlbjerseys.us

http://www.canadagoosepaschere.fr

http://www.chaussurelouboutin-pascher.fr

http://www.thenorthface.org.uk

http://www.ugg-bootsoutlet.co.uk

http://www.louisvuitton-borse.it

http://www.coachoutletstoreonlineclearances.org

http://www.adidasnmd.us.org

http://www.rolexwatchesuk.me.uk

http://www.michaelkorsoutletclearanceonlines.us.com

http://www.edhardyukclothing.me.uk

http://www.adidasnmd.org.uk

http://www.michaelkorsoutletstore.us.com

http://www.nikestoreuk.me.uk

http://www.cheapjordans-shoes.us.com

http://www.guccihandbagsoutlet.us

http://www.canadagooseoutlet.ca

http://www.louboutin.eu.com

http://www.michael-korsoutlet.us.com

http://www.ugg-australia.org.uk

http://www.coachfactoryoutletsaleonline.us.com

http://www.outletlouisvuitton.us.com

http://www.dolceandgabbanaoutlet.com

http://www.lebronjamesshoes.org

http://www.cheapoakleyssunglasses.us.org

http://www.cheapjordanshoes.us.com

http://www.supraforsale.in.net

http://www.chiflatiron.in.net

http://www.cheapjordans.us.com

http://www.adadasstansmith.com

http://www.rolex-replicawatches.com.co

http://www.ugg--outlet.us.com

http://www.hermesbeltoutlet.us

http://www.michael-korsoutlet.ca

http://www.uggboots-outlets.us.com

http://www.cheap-jordans.us

http://www.rolexreplicawatches.name

http://www.pandoracharmssaleclearance.com

http://www.michaelkors-outlet.ca

http://www.truereligionjeans.me.uk

http://www.monclerjacketsuk.org.uk

http://www.longchampoutletstore.com

http://www.michaelkors-handbags.us.com

http://www.rolexdaytona.in.net

http://www.nike-tn-pascher.fr

http://www.fake-rolex.us

http://www.skechersshoes.us

http://www.louis-vuitton-handbags.us.org

http://www.cheapuggs.org.uk

http://www.chaussure-louboutin.fr

http://www.uggs--canada.ca

http://www.nike-airmax90.me.uk

http://www.puma-shoes.in.net

http://www.birkenstocksandals.name

Comment by 20161222yuanyuan 38 weeks and 6 days ago

http://www.angelsgearstore.com/ Los Angeles Angels Jerseys

http://www.angelsgearstore.com/shop-by-player/kole-calhoun-jersey.html Kole Calhoun Jersey

http://www.angelsgearstore.com/shop-by-player/andrew-heaney-jersey.html Andrew Heaney Jersey

http://www.angelsgearstore.com/shop-by-player/albert-pujols-jersey.html Albert Pujols Jersey

http://www.angelsgearstore.com/shop-by-player/garrett-richards-jersey.html Garrett Richards Jersey

http://www.angelsgearstore.com/shop-by-player/andrelton-simmons-jersey.html Andrelton Simmons Jersey

http://www.angelsgearstore.com/shop-by-player/mike-trout-jersey.html Mike Trout Jersey

http://www.angelsgearstore.com/shop-by-player/c-j-wilson-jersey.html C.J. Wilson Jersey

http://www.angelsgearstore.com/youth/mike-trout-youth-jersey.html Mike Trout Youth Jersey

http://www.angelsgearstore.com/youth/albert-pujols-youth-jersey.html Albert Pujols Youth Jersey

http://www.angelsgearstore.com/womens/kole-calhoun-womens-jersey.html Kole Calhoun Womens Jersey

http://www.angelsgearstore.com/womens/mike-trout-womens-jersey.html Mike Trout Womens Jersey

http://www.angelsgearstore.com/womens/albert-pujols-womens-jersey.html Albert Pujols Womens Jersey

http://www.cardinalsbaseballgears.com/ St. Louis Cardinals Apparel

http://www.cardinalsbaseballgears.com/shop-by-player/matt-adams-jersey.html Matt Adams Jersey

http://www.cardinalsbaseballgears.com/authentic/matt-carpenter-authentic-jersey.html Matt Carpenter Authentic Jersey

http://www.cardinalsbaseballgears.com/shop-by-player/jedd-gyorko-jersey.html Jedd Gyorko Jersey

http://www.cardinalsbaseballgears.com/authentic/matt-adams-authentic-jersey.html Matt Adams Authentic Jersey

http://www.cardinalsbaseballgears.com/shop-by-player/randal-grichuk-jersey.html Randal Grichuk Jersey

http://www.cardinalsbaseballgears.com/authentic/carlos-martinez-authentic-jersey.html Carlos Martinez Authentic Jersey

http://www.cardinalsbaseballgears.com/shop-by-player/matt-carpenter-jersey.html Matt Carpenter Jersey

http://www.cardinalsbaseballgears.com/authentic/randal-grichuk-authentic-jersey.html Randal Grichuk Authentic Jersey

http://www.cardinalsbaseballgears.com/shop-by-player/yadier-molina-jersey.html Yadier Molina Jersey

http://www.cardinalsbaseballgears.com/authentic/jedd-gyorko-authentic-jersey.html Jedd Gyorko Authentic Jersey

http://www.cardinalsbaseballgears.com/shop-by-player/carlos-martinez-jersey.html Carlos Martinez Jersey

http://www.cardinalsbaseballgears.com/authentic/yadier-molina-authentic-jersey.html Yadier Molina Authentic Jersey

Comment by huang1 11 weeks and 2 days ago

http://www.nwg-online.nl/ goedkope Nike Air Max 90

http://www.nwg-online.nl/nike-huarache-dames.html Nike Huarache Dames

http://www.nwg-online.nl/nike-huarache-dames-zwart.html nike huarache dames zwart

http://www.nwg-online.nl/nike-huarache-dames-groen.html nike huarache dames groen

http://www.nwg-online.nl/air-max-1-dames.html Air Max 1 Dames

http://www.nwg-online.nl/air-max-1-dames-zwart.html air max 1 dames zwart

http://www.nwg-online.nl/air-max-2016-dames.html Air Max 2016 Dames

http://www.nwg-online.nl/air-max-2017-dames.html Air Max 2017 Dames

http://www.nwg-online.nl/air-max-2017-dames-zwart.html Air Max 2017 Dames zwart

http://www.nwg-online.nl/air-max-2017-dames-wit.html Air Max 2017 Dames wit

http://www.nwg-online.nl/air-max-2017-dames-groen.html Air Max 2017 Dames groen

http://www.nwg-online.nl/air-max-90-dames.html Air Max 90 Dames

http://www.nwg-online.nl/air-max-90-dames-zwart.html Air Max 90 Dames zwart

http://www.nwg-online.nl/air-max-90-dames-wit.html Air Max 90 Dames wit

http://www.nwg-online.nl/air-max-90-dames-groen.html Air Max 90 Dames groen

http://www.nwg-online.nl/air-max-thea-dames.html Air Max Thea Dames

http://www.nwg-online.nl/air-max-thea-dames-zwart.html Air Max Thea Dames Zwart

http://www.nwg-online.nl/free-rn-flyknit-dames.html Free Rn Flyknit Dames

http://www.nwg-online.nl/roshe-run-dames.html Roshe Run Dames

http://www.nwg-online.nl/asics-gel-nimbus-18-dames.html Asics Gel Nimbus 18 Dames

http://www.nwg-online.nl/asics-gel-quantum-360-dames.html Asics Gel Quantum 360 Dames

http://www.nwg-online.nl/adidas-superstar-schoenen-dames.html Adidas Superstar Schoenen Dames

http://www.nwg-online.nl/stan-smith-adidas-dames.html stan smith adidas dames

http://www.nwg-online.nl/nmd-adidas-dames.html NMD Adidas Dames

http://www.nwg-online.nl/nmd-adidas-dames-beige.html NMD Adidas Dames beige

http://www.nwg-online.nl/nmd-adidas-dames-zwart.html NMD Adidas Dames zwart

http://www.nwg-online.nl/adidas-ultra-boost-dames.html Adidas Ultra Boost Dames

http://www.nwg-online.nl/adidas-yeezy-boost-350-dames.html Adidas Yeezy Boost 350 Dames

http://www.nwg-online.nl/nike-huarache-heren.html Nike Huarache Heren

http://www.nwg-online.nl/air-max-2017-heren.html Air Max 2017 Heren

http://www.nwg-online.nl/air-max-2017-heren-zwart.html Air Max 2017 Heren zwart

http://www.nwg-online.nl/air-max-2017-heren-wit.html Air Max 2017 Heren wit

http://www.nwg-online.nl/air-max-90-heren.html Air Max 90 Heren

http://www.nwg-online.nl/air-max-90-heren-zwart.html Air Max 90 Heren zwart

http://www.nwg-online.nl/air-max-90-heren-wit.html Air Max 90 Heren wit

http://www.nwg-online.nl/nike-free-run-5-0-heren.html Nike Free Run 5.0 Heren

http://www.nwg-online.nl/free-rn-flyknit-heren.html Free Rn Flyknit Heren

http://www.nwg-online.nl/asics-gel-nimbus-18-heren.html Asics Gel Nimbus 18 Heren

http://www.nwg-online.nl/asics-gel-quantum-360-heren.html Asics Gel Quantum 360 Heren

http://www.nwg-online.nl/adidas-ultra-boost-heren.html Adidas Ultra Boost Heren

http://www.nwg-online.nl/adidas-yeezy-boost-350-heren.html Adidas Yeezy Boost 350 Heren

http://www.nwg-online.nl/nmd-adidas-heren.html NMD Adidas Heren

http://www.nwg-online.nl/stan-smith-adidas-heren.html stan smith adidas heren

Comment by huang1 8 weeks ago

Your point of view

You must be signed in to comment.