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



bash or tcsh redirect both to stdout and to a file

Terminal - bash or tcsh redirect both to stdout and to a file
echo "Hello World." | tee -a hello.txt
2009-06-26 00:55:59
Functions: echo tee
bash or tcsh redirect both to stdout and to a file

When plumbers use pipes, they sometimes need a T-joint. The Unix equivalent to this is 'tee'. The -a flag tells 'tee' to append to the file, rather than clobbering it.

Tested on bash and tcsh.


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

http://www.mksoutlet.us/ michael kors outlet

http://www.michael-korsoutletonline.us michael kors outlet online

http://www.prada-outlet.us.com prada outlet woodbury

http://www.nikerunningshoes.us nike running shoes

http://www.alahwazalarabi.com Nike Air Max 2017

http://www.80s-fashion.org 80's Fashion

http://www.pandora-charms.cc pandora charms

http://www.minisinbox.com Watches

http://www.pandoracharms.co pandora charms

http://www.burberryfactoryoutlet.com burberry factory outlet

http://www.pandoracharms.cc pandora charms

http://www.meteo-curtafond.fr Nike Air Jordan Enfants

http://www.celine-outlet.com celine outlet online

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

http://www.coach-factory-outlet.co coach factory outlet

http://www.abercrombiefitch.nl Abercrombie Fitch

http://www.chanel-outlet.co Chanel Outlet

http://www.kanye-west-shoes.us kanye west shoes

http://www.toryburchoulet.us tory burch outlet

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

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

http://www.michelewatch.us michele watch

http://www.sunglasses.com.es sunglasses

http://www.prada-outlet.co prada outlet online

http://www.coachfactoryoutlet.cc coach factory outlet

http://www.clearanceoutlet.us/ clearance

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

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

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

http://www.canadagoose-outlet.us/ canada goose outlet

http://www.tutorialsforthecomputer.fr Nike Air Max

http://www.yeezyboost.co yeezy boost 350 shoes

http://www.nikeschuheshop.de NIKE Schuhe Shop

http://www.katespadeaustralia.com kate spade australia

http://www.michael-kors-outletonline.us michael kors outlet online

http://www.pandoraoutlet.org pandora outlet

http://www.lisinopril10mg.us Lisinopril 10mg Us

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

http://www.hermesbelt.net hermes belt

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

http://www.supra-pascher.fr Air Max 90 Femme

http://www.louisvuitton-outlet.us louis vuitton outlet

http://www.burberryer.com burberry

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

http://www.cartier-watches.org Cartier Watches

http://www.jimmy-choo.ca jimmy choo

http://www.prada-outlet.net prada sale

http://www.eznara.com China wholesale

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

http://www.payless-shoes.co payless shoes

http://www.pandora-charms.co pandora charms sale

http://www.ybreen.com Air Jordan Retro 3

http://www.raybanprescriptionsunglasses.us rayban prescription sunglasses

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

http://www.michael-kors-outlet.net.co michael kors outlet online

http://www.raybanshop.us ray ban shop

http://www.promise--rings.us Promise Rings - Official

http://www.oakley-australia.net oakley australia

http://www.seikowatches.org seiko watches

http://www.katespadecanada.com kate spade cabada

http://www.michaelkorsoutletonline.us michael kors outlet online

http://www.swatchwatch.us swatch watch

http://www.tuxedos4u.com populaire Nike Lunarmax

http://www.pumaoutlet.net puma outlet online

http://www.metalliens.com Nike Air Jordan enfants

http://www.chrome-store.co.uk official chrome hearts

http://www.kate-spade.info kate spade

http://www.pandoracharms-outlet.com pandora charms outlet

http://www.birkenstocksandals.co birkenstock sandals

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

http://www.burberryoutlet2012.com burberry outlet

http://www.abercrombieoutlet.ca abercrombie canada

http://www.jimmychooaustralia.com jimmy choo australia

http://www.3chathk.com Nike Air Jordan Enfants

http://www.kruz-graphix.com Kruz-graphix

http://www.hermesbag.us hermes bag

http://www.longchampoutlet.cc Longchamp outlet

http://www.searchedtabsonline.com Nike Air Jordan Enfants

http://www.nikes.fr Air Max 180

http://www.school-bags.co school bags online sale

http://www.knrn.org black friday

http://www.northfacesaleoutlet.us north face sale outlet

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

http://www.coach-australia.com coach australia online sale

http://www.jewellery-online.us jewellery online

http://www.abirdtoldme.fr Nike Air Force

http://www.michael-kors-shoes.us michael kors shoes

http://www.yeezyboost-350.co yeezy boost 350

http://www.pandora-earrings.com pandora earrings

http://www.katespadecollection.com kate spade collection

http://www.louisvuittonoutletbox.com louis vuitton outlet

http://www.michaelkorsoutletsale.net michael kors outlet sale

http://www.pandora-charms.us pandora charms

http://www.coachbagsfactoryoutlet.us Coach Bags Outlet

http://www.sendgifts2india.com Nike Dunk SB Low

http://www.schuheguenstigerkaufen.de Nike Air Max 2017

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

http://www.uashoes.net ua shoes

http://www.raybanclubmaster.us ray ban clubmaster sunglasses

http://www.michaelkorsshopaustralia.com michael kors shop australia

http://www.escorte-victo.com Nike Air Max 1

http://www.michaelkorsoutlet-vip.us Michael Kors Outlet

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

http://www.louisvuittonoutlet8.com louis vuitton outlet online

http://www.raybanerika.us ray ban erika

http://www.katespadebags.net kate spade bags

http://www.kate-spade.cc kate spade

http://www.coachfactoryonlineoutlet.us Coach Factory Outlet

http://www.fakesunglasses.net fake sunglasses

http://www.clevelandbrowns.de Air Max 95

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

http://www.ad29.fr Air Jordan 10

http://www.lastarduweb.fr Nike Shox R3

http://www.tapchiamthuc.org tạp ch? ẩm thực

http://www.burberrybagsoutlet.us burberry bags outlet

http://www.addyourlinkfree.net Add Your Link Free

http://www.ray-ban-sale.us ray ban sale

http://www.animezanmai.com ugg outlet

http://www.coach.com.co coach bags

http://www.raybanaviator.us sunglasses

http://www.jewelryarmoire.us Jewelry Armoire - Official

http://www.cashreview.net louis vuitton bags

http://www.evbid.com evbid

http://www.menssunglasses.us Sunglasses outlet sale

http://www.whittonlodge.co.uk kate spade

http://www.super-douga.com Jordan Flight 45 Femme

http://www.nike-schuhe.de Nike Schuhe


Comment by meadc 14 weeks ago

Your point of view

You must be signed in to comment.