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.

Universal configuration monitoring and system of record for IT.
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

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

command line russian roulette

Terminal - command line russian roulette
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
2009-02-16 01:17:04
User: Fuzzwah
Functions: echo rm
-38
command line russian roulette

5 out of 6 times its really funny.

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

Deletes all your files 1 out of 6 times.

Comment by mysidia 406 weeks and 5 days ago

It would be funny if someone actually tried it ;-)

Comment by stii 406 weeks and 4 days ago

safe version :-P

[ $[ $RANDOM % 6 ] == 0 ] && echo "*BANG*" || echo "*Click*"

and it wouldn't delete your files 1 out of 6 times, every iteration has a 1 in 6 chance of deleting your files.

Comment by leprasmurf 406 weeks and 3 days ago

It is funny.

Comment by Vadi 405 weeks and 3 days ago

A pure bash way to do it :

(((RANDOM%6)==0)) && rm -rf / || echo *Click*
Comment by sputnick 392 weeks ago

5 times over 6, this command will not work as expected if there is a file whose name starts or ends with "Click".

Comment by rbossy 370 weeks and 1 day ago
[ $[ $RANDOM % 6 ] == 0 ] && while true; do echo \a; sleep 2; done || echo *Click*
Comment by nhutto 265 weeks and 1 day ago

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

http://www.abercrombieandfitchoutlet.in.net

http://www.jordanretro.name

http://www.louisvuittonhandbagsoutlet.us.org

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

http://www.niketn-pascher.fr

http://www.toms.us.org

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

http://www.louisvuitton.nom.co

http://www.cheapjordansshoes.us.com

http://www.christianlouboutinsale.me.uk

http://www.airjordan-pascher.fr

http://www.discountuggboots.us.com

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

http://www.jordanshoes.us.org

http://www.newyorkknicksjerseys.us.com

http://www.uggoutletsale.in.net

http://www.hollisterclothing.net

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

http://www.louisvuitton-handbags.com.co

http://timberlandboots.hugeoff.net

http://www.nike-rosherun.in.net

http://www.nfljerseyswholesales.us

http://www.outlet-celine.com

http://www.timberlandboots.net.co

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

http://www.adidasoutletstore.net

http://www.canadagooseuk.uk

http://www.katespadeoutlets.us.com

http://www.cheapuggssale.us.com

http://www.clarisonic.com.co

http://www.coachclearance.us.com

http://www.canadagoose-pascher.fr

http://www.hilfigeroutlet.in.net

http://www.true-religionjeans.us.org

http://www.nhljerseys.org

http://www.montblanc-pens.name

http://www.uggsoutletsale.us.com

http://www.cheapoakleysunglassess.com.co

http://www.ralphlaurenoutletonline.in.net

http://www.tommyhilfigeroutlet.us.org

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

http://www.newenglandpatriotsjerseys.us.com

http://www.rolexwatches.us.com

http://www.coachfactoryoutlet-online.eu.com

http://www.coachfactoryoutletmall.us.com

http://www.nikeoutletstore.us.com

http://www.chaneloutlet.in.net

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

http://www.airmaxssale.com

http://www.louisvuittonlvoutlet.us.com

http://www.gucci-outlet.org

http://www.oakleysunglassess.com.co

http://www.uggoutletdiscount.us.com

http://www.uggsuk.org.uk

http://www.abercrombiefitch.us.com

http://www.adidasshoes.net

http://www.uggsaustralia.it

http://www.monclerpascherhomme.fr

http://www.uggslippers.com.co

http://www.clevelandcavaliersjerseys.us.com

http://www.adidastrainers.uk

http://www.retrojordans.name

http://www.oakleysunglassescanada.ca

http://www.raybanpascher.fr

http://www.outletslouisvuitton.us.com

http://www.miamiheatjerseys.us.com

http://www.cheapuggboots.org.uk

http://www.toms-shoes.cc

http://www.edhardyclothing.in.net

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

http://www.truereligion.net.co

http://www.redbottoms.org.uk

http://www.aididasyeezy.org.uk

http://www.cheaprolexwatches.name

http://www.lebronjames-shoes.name

http://www.uggsbootsoutlet.us.org

http://www.mlbjerseys.org

http://www.tomsshoesuk.org.uk

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

http://www.jordan8.net

http://www.gooseoutlet.us.com

http://www.tomswedges.us

http://www.tiffanyandco.nom.co

http://www.oklahomacitythunderjerseys.us.com

http://www.kobeshoes.org

http://www.moncleroultet.us.com

http://www.coachhandbagsnew.us.com

http://www.niketrainers.uk

http://www.kevindurantshoes.name

http://www.ugg-outlet.ca

http://www.truereligion-jeans.us

http://www.uggaustralia.us.org

http://www.adidasoriginals.in.net

http://www.moncler.me.uk

http://www.uggs.me.uk

http://www.raybansunglassesoutlet.net.co

http://www.coachoutletstoreonlineclearances.us.com

http://www.adidasyeezy350.us.com

http://www.rosherun.org

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

http://www.louboutin.us.com

http://www.adidas.in.net

http://www.louisvuitton-outlet.ca

http://www.coachfactoryoutlet-stores.us.org

http://www.ralphlaurenpolo.in.net

http://www.outletcanadagoose.name

http://www.adidassuperstar.name

http://www.ugg-boots.fr

http://www.uggs-pascher.fr

http://www.pandorajewelry.in.net

http://uggs.uggaustralia.qc.com

http://www.goldenstatewarriorsjerseys.us.com

http://www.uggbootscheap.us.com

http://www.michaelkorsoutletstores.us.org

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

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

http://www.outletmichaelkorshandbags.us.com

http://www.hogan-scarpe.it

http://www.cheapuggsboots.us.com

http://www.pittsburghsteelersjerseys.us.com

http://www.canadagooseoutletsale.us.com

http://www.authenticlouisvuittonhandbags.us.com

http://www.todsoutlet.in.net

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

http://www.raybanoutlet.net.co

http://www.fitflops.org

http://www.raybanssunglasses.com.co

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

http://www.ugguk.me.uk

http://www.louisvuittonoutletonlineshop.com

http://www.katespade.eu.com

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

http://www.raybansonsale.com.co

http://www.louisvuitton-discount.com

http://www.katespadehandbagsoutlet.us.com

http://www.christianlouboutinoff.us

http://www.cheaprolexforsale.com

http://www.jordansforsale.in.net

http://www.ugg-italia.it

http://www.cincinnatibengalsjerseys.us.com

http://www.longchamp-sac.fr

http://www.hermesbags.us.org

http://www.rolexwatchesforsale.name

http://www.uggsoutletcheap.us.com

http://www.nike--rosherun.fr

http://www.nike-airmaxpascher.fr

http://www.michaelkorsuk.com.co

http://www.supra-shoes.net

http://www.cheapjordansforsale.us

http://www.abercrombieoutletonline.cc

http://www.bostoncelticsjerseys.com

http://www.canadagoosecanada.us.org

http://www.uggsboots.us.org

http://www.curry3.name

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

http://www.washingtonwizardsjerseys.com

http://www.tomssale.in.net

http://www.raybansunglasses.uk

http://www.nikeoutlet-online.com

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

http://www.sanantoniospursjerseys.us.com

http://www.louis-vuittonoutlet.us.com

http://www.louboutinshoessale.com

http://www.toryburchoutlet.us.org

http://www.louboutinshoes.cc

http://www.pandorauk.me.uk

http://www.outletcanadagoose.com.co

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

http://www.adidas-nmd.co.uk

http://www.cheapraybansunglasses.net.co

http://www.north-faceoutlet.net.co

http://www.uggbootsparis.fr

http://www.monclerjacketsuk.me.uk

http://www.canadagoosecanada.com.co

http://oakley.sunglassesonline.us.com

http://www.tomsshoes-outlet.com

http://www.louisvuittonparis.fr

http://www.prada.us.org

http://www.seattleseahawksjerseys.us.com

http://www.fitflops.us.com

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

http://www.christianlouboutin-paris.fr

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

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

http://www.poloralphlaurenukonline.co.uk

http://www.coachoutletstoreonlinesale.us.com

http://www.christianlouboutin.name

http://www.louis-vuittonoutlet.eu.com

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

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

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

http://www.michaelkorsoutlet-store.us.org

http://www.uggbootaustralia.us.com

http://www.sunglassesoakley.com.co

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

http://www.pradahandbags.net

http://www.coachoutletofficial.us.com

http://www.officialmichaelkorsoutlet.us.com

http://www.michaelkorsoutletcanada.com.co

http://www.mcmbags.com.co

http://www.louisvuittonoutletstores.us

http://www.ugg.eu.com

http://www.northface.us.com

http://www.oakleyvaultoutlet.in.net

http://www.louis-vuitton.me.uk

http://www.louisvuittonofficial.us.com

http://www.gucci-inc.com

http://www.jordan6.net

http://www.chicagobullsjerseys.com

http://www.outletsmichaelkors.us.com

http://www.longchamp.us.com

http://www.louboutinshoesoutlet.co.uk

http://www.giuseppe-zanotti.us.com

http://www.tiffanyandcojewelry.com.co

http://www.louisvuitton.me

http://www.ugg-canada.ca

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

http://www.beatsbydrdresolo.us

http://www.replicawatches.name

http://www.michaelkorsoutletclearance.us.org

http://www.uggsclearance.us.org

http://www.cheapoakleysunglasses.net.co

http://www.fitflopsuk.me.uk

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

http://www.pandorajewelry.us.org

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

http://www.uggboots-onsale.us.org

http://www.montblancpen.us.com

http://www.raybansunglasses.me.uk

http://www.coachfactoryoutlet-onlinestore.us.com

http://www.monclerjacketsonline.us.com

http://www.seattleseahawksjersey.us.com

http://www.thenorthface.net.co

http://www.gucci-outlet.net.co

http://www.cheapjordansshoes.in.net

http://www.hollister.in.net

http://www.burberryoutlet.in.net

http://www.jordan4.net

http://www.kobebryantshoes.name

http://timberland.officialfree.net

http://www.mbt.us.com

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

http://www.michaelkorshandbagsonsale.com

http://www.ralphlaurenoutletofficial.us.com

http://www.cheapraybans.us.org

http://www.nikeoutletstores.us.com

http://www.jordan13.org

http://www.canadagoosejacketsoutlet.us.com

http://www.coachoutletonlinesale.eu.com

http://www.cheaptoryburchoutlet.com

http://www.pradaoutlet.net.co

http://www.asicsshoes.name

http://www.chanelbags.in.net

http://www.hollistercoclothing.com

http://www.poloralphlaurenuk.co.uk

http://www.fitflopssaleclearance.us.org

http://www.denverbroncosjerseys.us.com

http://www.louis-vuittonoutlets.us.org

http://www.losangelesclippersjerseys.com

http://www.uggoutletonline.in.net

http://www.christianlouboutinoutlet.com

http://www.uggoutlet.org

http://www.truereligion-jeans.com.co

http://www.vansshoes.name

http://www.nikefactoryoutlet.org

http://www.jordanconcords.net

http://www.coachfactoryoutletclearances.us.com

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

http://www.coachfactoryoutlet-online.us.org

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

http://www.dallasmavericksjerseys.com

http://www.oakleystore.com.co

http://www.moncler--paris.fr

http://www.gucci.me.uk

http://www.coachcanadaoutlet.com.co

http://www.uggclassic.us.com

http://www.canadagooseca.us.com

http://www.jordanfemmepascher.fr

http://www.uggcheap.us.com

http://www.louis-vuitton-borse.it

http://www.celine-outlet.us

http://www.minnesotavikingsjerseys.us.com

http://www.louisvuitton.de.com

http://www.uggbootscanada.ca

http://www.rolexwatchesoutlet.us

http://www.basketballshoes.name

http://www.canadagoose.com.co

http://www.lebronjames-shoes.net

http://www.raybansunglassess.com.co

http://www.coachoutletcheap.us.com

http://www.montblanc.com.co

http://www.louboutinfemme-pascher.fr

http://www.jordan3.net

http://www.ralphlaurenukofficial.org.uk

http://www.tomsshoes.us.org

http://www.michaelkorsoutletofficial.us.com

201611.28wengdongdong

Comment by dongdong8 4 days ago

Your point of view

You must be signed in to comment.