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

Search google.com on your terminal

Terminal - Search google.com on your terminal
Q="YOURSEARCH"; GOOG_URL="http://www.google.com/search?q="; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}\"${Q/\ /+}\"" | grep -oP '\/url\?q=.+?&amp' | sed 's/\/url?q=//;s/&amp//'); echo -e "${stream//\%/\x}"
2013-04-03 09:56:41
User: techie
Functions: echo grep sed
9
Search google.com on your terminal

I found this command on a different site and thought you guy might enjoy it. Just change "YOURSEARCH" to what ever you want to search. Example, "Linux Commands"

Alternatives

There are 3 alternatives - vote for the best!

Terminal - Alternatives
function google { Q="[email protected]"; GOOG_URL='https://www.google.de/search?tbs=li:1&q='; AGENT="Mozilla/4.0"; stream=$(curl -A "$AGENT" -skLm 10 "${GOOG_URL}${Q//\ /+}" | grep -oP '\/url\?q=.+?&amp' | sed 's|/url?q=||; s|&amp||'); echo -e "${stream//\%/\x}"; }
2013-04-05 08:04:15
User: michelsberg
Functions: echo grep sed
Tags: google
13

Put it in your ~/.bashrc

usage:

google word1 word2 word3...

google '"this search gets quoted"'

Know a better way?

If you can do better, submit your command here.

What others think

Thanks!

I took the freedom to submit a mostly copied multi-word verbatim version as a function, here:

https://www.commandlinefu.com/commands/view/12128/

Comment by michelsberg 228 weeks and 5 days ago

yours does not work on bash

Comment by techie 228 weeks and 5 days ago

What does not work? I am using bash here, and it works.

Comment by michelsberg 228 weeks and 5 days ago

Im sorry I could not get it working.. I must be doing something wrong.

Comment by techie 228 weeks and 2 days ago

this used to work well but does not work anymore... I suspect the shellshock bug fix here.

Comment by snaguber 145 weeks and 6 days ago

http://www.michaelkorsuk-outlet.org.uk

http://www.mlb-jerseyswholesale.us.com

http://www.mcmoutletstores.us.com

http://www.nfl-jerseyswholesale.us.com

http://www.uggbootsoutlets.com.co

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

http://www.airmax90.org.uk

http://www.handbagslongchamp.us.com

http://www.michaelkorsoutletfactorystore.us.com

http://www.oakleysunglassesformen.com.co

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

http://www.oakleysunglasseswholesaleauthentic.us.com

http://www.long-champoutlet.us.com

http://www.nfljerseyswhole-sale.us.com

http://www.adidasoutletstore.in.net

http://www.michael-korsoutletclearance.us.org

http://www.coachoutletonlineclearance.us.com

http://www.reeboktrainers.org.uk

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

http://www.poloralphlaurenoutlet-online.us.com

http://www.nikeroshe-run.me.uk

http://www.longchamp-bags.me.uk

http://www.canadagooseoutletonline.us.org

http://www.ralphlauren-pascher.fr

http://www.truereligion-jeanssale.us.com

http://www.poloralph-lauren.org.uk

http://www.truereligionjeansoutlet.co.uk

http://www.pandorajewelrycharms.in.net

http://www.poloralphlaurensale.us.com

http://www.coachfactoryoutlet-store.com.co

http://www.kobeshoes.us

http://www.futbol-baratas.com

http://www.raybansunglassesoriginal.us.com

http://www.ugg-outletclearance.in.net

http://www.truereligionjeansoutlets.us.com

http://www.katespadehandbags.me.uk

http://www.uggoutletonline.eu.com

http://www.oakleysunglasseswholesalechina.us.com

http://www.ugg-outletstore.in.net

http://www.shoesjordan.net

http://www.ugg-outletstores.com.co

http://www.pradashoesofficial.us

http://www.todsoutlet.us.org

http://www.mulberry-handbagsoutlet.org.uk

http://www.canada-goosejacketsoutlet.us.com

http://www.ugg-outletclearance.com.co

http://www.michaelkorshandbags.in.net

http://www.mulberryhandbagsuk.org.uk

http://www.nikerosherun.me.uk

http://www.raybansunglasses2.us.com

http://www.coachfactoryoutletstore.com.co

http://www.airjordan4.org

http://www.coachfactory-outletonline.com.co

http://www.uggoutletclearance.us.com

http://www.michaelkorsoutletkors.us.com

http://www.nikestore-uk.me.uk

http://www.michae-kors-outlet.ca

http://www.michaelkorsofficial.us.com

http://www.fitflopsshoes.co.uk

http://www.airforce1.us.com

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

http://www.cheap-raybans.org

http://www.ferragamooutletstore.net

http://www.mulberryhandbagssale.co.uk

http://www.addidasshoes.net

http://www.canadagooseoutletstore.com.co

http://www.michaelkorsfactoryoutletonline.in.net

http://www.fitflopssale.in.net

http://www.lacostepoloshirts.us

http://www.longchamphand-bags.us.com

http://www.uggoutlet-clearance.com.co

http://www.max1.nl

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

http://www.oakleysunglassesuk.com.co

http://www.burberrysaleoutlet.us.com

http://www.canadagoosejackets-uk.com.co

http://www.ralphlaurenoutlet.org.uk

http://www.nike-airmax2015.us

http://www.michaelkorsoutletcoupons.us.com

http://www.michaelkorsoutletz.us.com

http://www.uggboots-australia.in.net

http://www.nikeairmaxtrainers.co.uk

http://www.coachoutletonline.us.org

http://www.suprashoes.us.com

http://www.michaelkorsoutletfriday.us.com

http://www.michaelkors-outletuk.org.uk

http://www.kevindurantshoes.net

http://www.chromeheartsoutletstore.us.com

http://www.polooutletus.us.com

http://www.truereligion-jeans.org.uk

http://www.lakersjerseys.us.com

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

http://www.coachoutletoutlet.us.com

http://www.bottega-venetaoutlet.us

http://www.cheapjordansonline.us.com

http://www.oakleysunglasses-sale.us.com

http://www.toryburch-outletstore.in.net

http://www.cheapoakley-sunglasses.com.co

http://www.canadagooseoutletstore.us.org

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

http://www.coachoutlet-onlines.eu.com

http://www.canada-gooseoutletstore.com.co

http://www.longchampoutlet.us.com

http://www.converseshoes.us.com

http://www.longchamphandbagsuk.co.uk

http://www.christianlouboutin-outlet.me.uk

http://www.katespade.org.uk

http://www.ralph-laurenpolo.us.com

http://www.uggoutlet-clearance.in.net

http://www.coachoutlethandbags.us.com

http://www.cheapraybansunglasseswholesale.us.com

http://www.cheap-raybansunglasses.com.co

http://www.ugg-bootsclearance.com.co

http://www.clearancefitflopssale.com

http://www.katespadeoutletstore.us

http://www.uggsoutletstore.com.co

http://www.cheapmlbjerseys.net

http://www.michael-korsoutletclearance.com.co

http://www.ralph-laurenpolo.me.uk

http://www.michaelkorsoutlet-onlineclearance.us.com

http://www.coachoutletonlinecoachfactoryoutlet.com

http://www.toryburchoutlet-online.us.com

http://www.coachoutletonline-factory.us.com

http://www.pandoracharmsjewelry.me.uk

http://www.cheapraybansunglasses-wholesale.us.com

http://www.airmax90.us.com

http://www.oakleysunglassesofficial.us.com

http://www.michaelkorsoutletclearanceinc.us.com

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

http://www.fitflopssale.me.uk

http://www.adidas-trainers.org.uk

http://www.lebronjames.us.com

http://www.ysloutlet.us.com

http://www.soccerjerseys.us.com

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

http://www.uggboots-cheap.in.net

http://www.michaelkorsoutletonline-shop.us.com

http://www.mulberryoutletstore.co.uk

http://www.katespadeoutletonlinestore.us.com

http://www.cheapuggs-outlet.in.net

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

http://www.pandoracharmsuk.com.co

http://www.cazal.us.com

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

http://www.linksoflondons.co.uk

http://www.coachoutletstore.com.co

http://www.oakleysunglasseswholesaleoakley.us.com

http://www.swarovski-crystal.org.uk

http://www.coachfactoryoutletcoachoutletonline.us.com

http://www.chromeheartsoutlet.com.co

http://www.cheapsoccerjersey.net

http://www.raybansunglasses1.us.com

http://www.2017wholesalenfljerseys.com

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

http://www.polo-lacostepascher.fr

http://www.coachhandbagsclearance.us.com

http://www.pandorajewellery.cc

http://www.canadagoosejacketsuk.com.co

http://www.ferragamoshoes.org.uk

http://www.ralphlauren-outletuk.co.uk

http://www.mulberrybagsmulberryhandbags.co.uk

http://www.nikeairmax90.nl

http://www.coachfactoryoutletsales.us.com

http://www.ralphlaurenoutletstores.us.com

http://www.canadagoosejackets.us.org

http://www.nhljerseyswholesales.us.com

http://www.michaelkorsoutlet-sale.us.com

http://www.poloralphlaurenofficial.us.com

http://www.coachoutletclearanceonline.us.com

http://www.nfljerseyswholesales.us.com

http://www.jordanshoes.us.com

http://www.mbt5.com

http://www.kobe9elite.us.com

http://www.soccer-shoes.us

http://www.swarovskicrystals.com.co

http://www.airmaxuk.org.uk

http://www.ugg-bootsoutlets.com.co

http://www.uggsoutletonline.com.co

http://www.ferragamo.eu.com

http://www.coachoutletonline-clearance.us.com

http://www.adidasnmduk.org.uk

http://www.mont-blancpens.com.co

http://www.nikeoutlet-stores.us

http://www.polo-outlet.in.net

http://www.hermes-birkin.in.net

http://www.canadagooseoutletstore.name

http://www.maccosmeticsoutlet.us.com

http://www.coachoutletcoachoutletonline.us.com

http://www.toryburchoutlets.us.org

http://www.michaelkorshandbags-onsale.us.com

http://www.marc-jacobs.us.org

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

http://www.cheapfootballshirts.me.uk

http://www.salomonshoessalomonoutlet.us.com

http://www.ralphlaurenpolo-shirts.us.com

http://www.montblancpenss.us.com

http://www.michaelkorsoutletonline-stores.us.com

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

http://www.truereligion-jeansoutlet.us.com

http://www.prada-handbags.co.uk

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

http://www.pandorajewelryoutlet.us.com

http://www.jeanstruereligion.in.net

http://www.pumaoutlet-online.com

http://www.mulberry-handbags.co.uk

http://www.ferragamoshoesoutlet.net

http://www.nike-outletonline.com

http://www.sunglassesoakley.co.uk

http://www.toryburch.com.co

http://www.cartieroutlets.us.com

http://www.valentinooutlet.us.com

http://www.polooutletstores.us.com

http://www.toryburchoutletofficial.us.com

http://www.fitflopssale.us

http://www.nikeblazerpaschers.fr

http://www.outletchristianlouboutin.us.com

http://www.truereligionjeans-canada.com

http://www.air-huarache.org.uk

http://www.uggoutlet-store.com.co

http://www.fitflopssaleclearance.in.net

http://www.canadagooseoutletcanada.us.com

http://www.cheapsnapbacks.net

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

http://www.michaelkorshandbagsoutletstores.us.com

http://www.sunglassescheap.org

http://www.michaelkors-handbagsuk.org.uk

http://www.oakleysunglassesdiscount.com.co

http://www.coachoutletstoreonlineclearance.us.com

http://www.asicsisrael.com

http://www.michaelkorsoutletmichaelkorsoutletonline.us.com

http://www.burberry-outletstore.in.net

http://www.ugg-outletstore.us.org

http://www.outlettruereligion.in.net

http://www.long-champoutlet.in.net

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

http://www.oakleysunglassesoakley.us.com

http://www.christian-louboutinoutlets.us.com

http://www.vans-shoes.cc

http://www.pandoracharmssaleclearance.org

http://www.basketballshoes.us.com

http://www.true-religion.org.uk

http://www.pradaoutlet.us

http://www.yeezyboost350sale.us.com

http://www.swarovskicrystaljewelry.us.com

http://www.pandorajewelrys.us.org

http://www.newbalanceshoes.in.net

http://www.christianlouboutinshoessale.us.com

http://www.uggbootsclearance.us.org

http://www.toryburchoutletstores.us.org

http://www.ray-bansunglasses.com.co

http://oakley.sunglassess.us.com

http://www.oakleysunglassescheapoutlet.us.com

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

http://www.herveleger.us.com

http://www.longchampbags.co.uk

http://www.oakleysunglasses-wholesale.com.co

http://www.canadagoose-jackets.us.org

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

http://www.nikeair-max.me.uk

http://www.giuseppe-zanotti-outlet.org

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

http://www.oakleysunglassesoutletsale.us.com

http://www.raybansunglassescheap.com.co

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

http://www.raybans-sunglasses.us.com

http://www.shoelysale.com

http://www.michaelkorswallets.us.org

http://www.cheapnba-jerseys.us.com

http://www.hermesoutletstore.us.com

http://www.canadagooseoutletcanadagoosejackets.com

http://www.burberryoutlet.ca

http://www.michaelkors.de.com

http://www.thomassabocharms.org.uk

http://www.michaelkorsoutletclearance-online.us.com

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

http://www.ralphlaurenpoloofficial.us.com

http://www.sunglassesrayban.org.uk

http://www.ralphlaurenpolo.us.com

http://www.oakley-sunglasseswholesale.us.com

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

http://www.lebronjamesshoes.in.net

http://www.coachoutletcoachfactoryoutlet.us.com

http://www.nikerosheone.us

http://www.ray-bansunglassesofficial.us.com

http://www.nikeairmax90.me.uk

http://www.coachoutletonlinestore.eu.com

http://www.adidas-wings.in.net

http://www.ralphlauren-polo.org.uk

http://www.christianlouboutinonline.us.com

http://www.coachoutletonline.com.co

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

http://www.christianlouboutinoutletstore.us.com

http://www.nikeshoes.org.uk

http://www.mbt-shoesoutlet.us.com

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

http://www.ferragamoshoes.com.co

http://www.mulberrysale.co.uk

http://www.raybansunglassessale.com.co

http://www.michaelkorsoutletmks.us.com

http://www.coachoutletsales.us.com

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

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

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

http://www.salvatore-ferragamo.in.net

http://www.oakleysunglassescheapwholesale.us.com

http://www.coachoutlet-clearance.us.com

http://www.ralphlaurenukofficial.me.uk

http://www.coachoutlet-onlineclearance.us.com

http://www.pradasunglasses.us.com

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

http://www.canada-gooseoutlet.us.org

http://www.yeezyboostoutlet.us.com

http://www.swarovskioutlet.us.com

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

http://www.nikeairmax-90.co.uk

http://www.cheapjordansfreeshipping.us.com

http://www.nikefree5.us

http://www.wholesaleraybansunglasses.us.com

http://www.michaelkorsoutlet-uk.me.uk

http://www.ralphlaurenpoloshirts.org.uk

http://www.michaelkorshandbagsclearancestore.us.com

http://www.michaelkors.eu.com

http://www.coachoutletclearance.us.com

http://www.polotshirts.org

http://www.rayban-sunglassesoutlet.us.com

http://www.eccoshoesoutlet.us.com

http://www.edhardy.us.com

http://www.fitflopsoutletsale.com

http://www.christianlouboutinshoesoutlet.us.com

http://www.swarovski-crystal.me.uk

http://www.raybans-sunglasses.com.co

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

http://www.coachoutlet-onlines.us.com

http://www.nikeoutletstore.us

http://www.rayban--sunglasses.me.uk

http://www.coachfactoryoutletsale.com.co

http://www.fredperrypoloshirts.com

http://www.hermesbelts.us.com

http://www.michaelkorsoutlet-storesofficial.us.com

http://www.adidasnmdshoes.us.org

http://www.cheapjerseyswholesale.org

http://www.nikeshoesforwomen.us.com

http://www.outletkatespade.us

http://www.uggoutlet-stores.com.co

http://www.truereligionjeanssale.in.net

http://www.michaelkorsoutletonlineofficial.us.com

http://mulberryoutlet.outlet-store.co.uk

http://www.kobebryantshoes.in.net

http://www.oakleysunglassescheapsale.us.com

http://www.coachoutletclearancesale.us.com

http://www.niketrainersnikeshoes.co.uk

http://www.oakleysunglassesoutletcheap.us.com

http://www.adidasukstore.org.uk

http://www.uggbootsforwomen.us.com

http://www.raybansunglassesuk.com.co

http://www.christianlouboutin-shoes.org.uk

http://www.fitflop.in.net

http://www.michaelkorsbags.org.uk

http://www.coachfactoryoutlet.de.com

http://www.canadagooseoutlet-stores.com

http://www.birkenstocksandals.me.uk

http://www.outletmichaelkors.co.uk

http://www.coachoutletcanada.com.co

http://www.burberryoutletstore.in.net

http://www.mulberrybagsuk.co.uk

http://www.nikeairmaxshoess.co.uk

http://www.poloralph-lauren.us.com

http://www.truereligionjeanssale.com

http://www.christianlouboutinoutletsale.us.com

http://www.cheapoakleysunglassesformen.us.com

http://www.nike-store.org.uk

http://www.fitflopsshoes.in.net

http://www.coachoutletonlinecoachoutlet.us.com

http://www.canadagooseoutletonline.com.co

http://www.uggoutletsale.us.com

http://www.wholesale-nbajerseys.com

http://www.niketrainers.me.uk

http://www.canadagoosejackets.eu.com

http://www.uggoutlet-online.com.co

http://www.reebokoutletstores.us.com

http://www.ugg-bootsaustralia.com.co

http://www.skysneakers.com

http://www.raybanscheap.us.com

http://www.foampositeshoe.net

http://www.truereligionjeans.org.uk

http://www.clevelandcavaliers.us.com

http://www.truereligion-jean.us.com

20170819caihuali

Comment by liuchunkai 4 days ago

Your point of view

You must be signed in to comment.