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

Single use vnc-over-ssh connection

Terminal - Single use vnc-over-ssh connection
ssh -f -L 5900:localhost:5900 your.ssh.server "x11vnc -safer -localhost -nopw -once -display :0"; vinagre localhost:5900
2010-12-29 08:41:10
User: johnquail
Functions: ssh
21
Single use vnc-over-ssh connection

This command

1. SSH into a machine

2. Tunnels VNC port to your local computer ("-L 5900:localhost:5900")

3. Runs a single use vnc server ("x11vnc -safer -localhost -nopw -once -display :0")

4. Goes into the background ("-f")

5. Runs VNC viewer on the local computer connecting to the remote machine via the newly created SSH tunnel ("vinagre localhost:5900")

Alternatives

There are 5 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Nice. Too bad you posted this a week after I needed it. I was forced to read the man page. ;-) By the way, -once isn't necessary as it is the default for x11vnc. Also, -nopw can be left out, although x11vnc will give you a warning message that no password is being used.

Comment by hackerb9 345 weeks and 3 days ago

I'll try to post one week earlier from now on :-)

Comment by johnquail 345 weeks and 3 days ago

He had vowed http://www.true-religion.com.co/ to http://www.longchamp-bags.us.com/ be with http://www.ralph-laurenoutletonline.com/ her http://www.outlet-burberry.net.co/ for http://steelers.nfljersey.us.com/ life, http://falcons.nfljersey.us.com/ but in the http://www.burberry-handbagsoutlet.net.co/ end http://www.mk-com.com/ he http://www.burberry-outlets-online.co.uk/ not http://www.cheap-mlbjerseys.us.com/ only http://www.prada-shoes.com.co/ lost http://www.woolrich-clearance.com/ her, http://www.coach-outlet.store/ even http://www.mcms-handbags.com/ the last gentle http://jazz.nba-jersey.com/ left http://www.swarovski-online-shop.de/ by her was lost. http://www.hollisters-canada.ca/ He kneeled http://www.ray-bans.net.co/ at http://www.timberlandshoes.net.co/ her tomb, http://www.rosheruns.us/ whispering: http://coach.blackfriday.in.net/ "I'm http://www.toms-outlet.net/ sorry, http://www.hollisterclothingstore.org/ can not http://www.burberry-outletcanada.ca/ keep http://www.truereligion-outlet.us.org/ your http://www.jordanrelease-dates.us.com/ gentle http://www.omegarelojes.es/ ... http://www.nikeair-max.ca/ ... http://www.vans-shoes.net/ sorry ... http://www.hogan.com.de/ ..." http://www.puma-shoesoutlet.com/ Since http://ravens.nfljersey.us.com/ a month http://www.barbour-factory.com/ ago http://www.oakleysunglasses2017.com/ girlfriend http://www.pradaoutlet.com.co/ died, http://coach.euro-us.net/ the rock http://www.hollister-clothingstore.com/ is http://rams.nfljersey.us.com/ very http://eagles.nfljersey.us.com/ careful http://www.iphone-cases.net/ not http://www.mizuno-running.net/ to http://www.barbour.in.net/ let http://www.pradahandbags.net.co/ the http://www.pandorajewellery.com.au/ phone no http://www.adidas-superstars.nl/ electricity, http://www.jimmy-choos.com/ always With a http://www.ralphlauren-au.com/ cell phone. http://www.michaelkors.so/ As long http://www.rayban.com.de/ as http://www.coachblackfriday.com/ the phone left http://www.hollisteronlineshop.com.de/ him, he would http://www.nikefree-run.org.uk/ be very http://www.bottega-venetas.cc/ nervous, until http://www.beatsheadphone.in.net/ the phone http://www.hollister-abercrombie.com.se/ in his http://www.retro-jordans.com/ hand http://lakers.nba-jersey.com/ to relax. http://www.michael-korsbags.co.uk/ He http://www.christianlouboutinshoesoutlet.org/ often http://www.christianlouboutin-shoes.ca/ with http://azcardinals.nfljersey.us.com/ headphones, http://www.nike-air-max.com.au/ as http://browns.nfljersey.us.com/ if http://www.nike-schoenen.co.nl/ listening http://www.cheapnhljerseys.us.com/ to http://www.poloralphlauren.cc/ music, but http://www.cheapmichaelkors.us.org/ he http://timberwolves.nba-jersey.com/ listened http://www.beats-by-dre.com.co/ to listening to http://www.christian-louboutinshoes.in.net/ tears, http://www.rosherun.co.uk/ even http://hawks.nba-jersey.com/ if http://www.nikefree-run.net/ the off http://www.michael-kors-taschen.com.de/ the http://www.the-northfaces.us.com/ headset, http://www.bcbg-dresses.com/ but http://www.raybanssunglasses.in.net/ also http://www.pandorajewelry.top/ after http://www.giuseppe-zanotti.net/ a http://giants.nfljersey.us.com/ while http://www.calvin-kleins.in.net/ to http://www.cheap-raybansoutlet.in.net/ slowly calm http://www.longchampoutlet.com.co/ feelings. http://www.raybans.org.es/ This day, the http://www.scarpe-hoganoutlets.it/ rock went to the http://www.giuseppezanotti.com.co/ supermarket http://bucks.nba-jersey.com/ to http://www.coach-outletonline.ca/ buy http://www.ray-banssunglasses.co.uk/ things. Coincides with http://www.michaelkors-canadaoutlet.ca/ the http://www.north-face.com.co/ supermarket discount promotions, http://www.toms-shoesoutlet.us/ the supermarket is http://clippers.nba-jersey.com/ very crowded. http://www.tommy-hilfiger.in.net/ Rock is not http://www.givenchy.in.net/ easy in http://www.cheap-jerseys.cc/ the http://www.cheapjerseys.us.org/ crowd http://www.oakleys-2017.in.net/ out http://www.rayban.co.nl/ of the http://panthers.nfljersey.us.com/ tight http://bears.nfljersey.us.com/ encirclement, and finally http://www.polos-outlets.com/ got what http://www.mcm-handbags.org/ they want http://grizzlies.nba-jersey.com/ to http://www.swarovski-crystals.us.com/ buy http://www.adidas.us.com/ things. http://www.montblancpens-sale.com/ Rock just http://redskins.nfljersey.us.com/ breathed http://raptors.nba-jersey.com/ a sigh http://www.plein.in.net/ of http://www.omegawatches.in.net/ relief, but suddenly http://www.nikeshoes-outlet.com/ found http://jaguars.nfljersey.us.com/ the phone was http://www.nikestore.us/ gone. He http://www.polo-ralph-lauren.de/ looked http://mavericks.nba-jersey.com/ panic to http://www.oakley--sunglasses.com.au/ all http://www.barbour-jacketsoutlet.net/ the http://www.tory-burch.us.org/ pockets http://www.long-champoutlet.com/ of http://www.asics-shoesoutlet.com/ the http://suns.nba-jersey.com/ body, http://www.hollister-clothing.in.net/ come http://www.vans-shoes.co.uk/ back http://www.oakleysunglasses-canada.ca/ and http://chargers.nfljersey.us.com/ forth to just http://www.mcmhandbags.com.co/ have http://www.tory-burchsandals.in.net/ their own http://www.kates-spade.com/ place http://www.the-northfaces.net.co/ to http://www.lauren-ralphsoutlet.co.uk/ find again http://www.iphone-cases.in.net/ and http://www.oakleys-frame.net/ again, did http://www.tommyhilfiger.net.co/ not http://www.christianlouboutinshoes.jp.net/ find http://www.instylers.us.org/ the http://www.tracksuits-store.com/ trail http://www.ray-bans.co.uk/ of http://www.soccers-shoes.net/ the http://thunder.nba-jersey.com/ phone. http://www.michael-kors.shop/ Rock noted the http://www.oakleyoutlet.fr/ supermarket in every http://www.ok-em.com/ corner of http://bills.nfljersey.us.com/ the installation of http://www.longchamps.us.com/ the http://warriors.nba-jersey.com/ camera, http://www.thenorthfacejackets.fr/ they http://www.horlogesrolex.nl/ are http://www.tommy-hilfigers.net/ anxious http://www.adidasshoesca.ca/ to http://www.designer-handbagsoutlet.us.com/ find the supermarket security personnel, http://www.nike-air-max.com.de/ hoping http://www.adidas-shoes.cc/ to http://www.thomas-sabo.com.de/ bring http://www.swarovskissale.co.uk/ out the http://www.zxcoachoutlet.com/ relevant http://www.burberry-outletstore.net/ monitoring http://www.nikeshoes.org.es/ video, find http://www.marc-jacobsonsale.com/ out his http://www.cheapreplica-watches.in.net/ mobile http://www.tommy-hilfiger.com.de/ phone http://www.polos-ralphlauren.us.org/ people. http://www.nike-factorys.us/ Security at http://oakley.blackfriday.in.net/ first http://www.abercrombie-andfitchs.com/ did http://www.oakleys-outlet.in.net/ not http://www.burberryonlineshop.de/ want http://www.ralphs-laurens.co.uk/ to http://www.tory-burchoutlet.com.co/ ignore the rock, http://pelicans.nba-jersey.com/ when http://www.ralphlauren-polos.com.co/ the http://www.nike-shoescanada.ca/ rock http://www.versaceoutlet.us.com/ to find the http://www.soccer-shoesoutlet.com/ reason http://www.rolexwatchesforsale.us.com/ to http://www.airjordans.us/ say http://www.uhren-shop.com.de/ back to http://www.hermesoutlet.shop/ the http://76ers.nba-jersey.com/ phone, http://www.ralphslaurenoutlet.us.com/ the http://www.michaelkors.com.se/ security http://www.dsquared2.in.net/ on http://www.pandoracharms-canada.ca/ the http://www.underarmour.us.com/ police, http://www.michael-kors.net.co/ and http://www.nike-free-run.de/ with http://www.cheap-jerseys.mex.com/ the fastest speed http://www.cheap-jordans.net/ to capture http://www.chrome-hearts.in.net/ suspicious http://www.ray-bansoutlet.in.net/ characters http://www.cheap-michaelkors.com/ can http://www.raybans-outlet.cc/ be http://www.nike-huaraches.nl/ collected http://www.lacosteoutlet.us.com/ records http://www.nike-schuhe.com.de/ together. http://www.hollisters.us.com/ Fortunately, http://www.nike-airmax.us.com/ the police http://www.adidas.com.se/ quickly http://www.longchamp.com.de/ locked http://www.nike-air-max.com.se/ out http://www.nike-skor.com.se/ a http://www.burberryoutlet-sale.net/ suspected http://www.rayban-pascher.fr/ object based http://www.nikeair--max.fr/ on the http://www.levisjeans.com.co/ monitor jewelry. Security and http://www.the-northfacejackets.net.co/ the http://wizards.nba-jersey.com/ police at http://www.timberland-boots.com.co/ the http://www.newbalance-outlet.org/ same time http://www.bcbg-maxazria.ca/ surprised http://www.cheap-thomassabos.co.uk/ to say: http://www.bottega-veneta.in.net/ "is http://www.nike-rosherun.com.es/ his?" http://www.cheap-michaelkors.in.net/ The original, http://www.vans-schuhe.com.de/ take the http://www.mcm-bags.us.org/ rock phone is http://www.air-huarache.co.uk/ a http://www.ray-bans-sunglasses.net/ theft http://www.michaelkorsbags.us.org/ of http://www.cheapjerseys.net.co/ recidivists, http://www.to-coachoutlet.com/ has more http://www.oakley-outletonline.com.co/ than http://seahawks.nfljersey.us.com/ once in http://rockets.nba-jersey.com/ the http://www.vibram-fivefingers.in.net/ supermarket http://www.chi-flatirons.us.com/ to http://www.tomsoutlet-online.net/ steal http://vikings.nfljersey.us.com/ things, the http://www.christianlouboutinoutlet.net.co/ supermarket http://www.cheap-baseballbats.us/ reported http://hornets.nba-jersey.com/ a http://celtics.nba-jersey.com/ few http://www.ralph-laurenpolosoutlet.com/ cases, http://www.cheap-oakleyssunglasses.com/ but the http://nets.nba-jersey.com/ police http://www.abercrombiefitchs.cc/ always http://www.ferragamoshoes.in.net/ Catch him. http://coach-outlet.tumblr.com/ Security http://ralphlauren.blackfriday.in.net/ searched http://www.michael-kors.cc/ the http://www.beatsbydrdrephone.com/ supermarket, the http://www.longchamp.com.co/ police http://www.marc-jacobs.us.com/ searched http://www.louboutin.jp.net/ the http://chiefs.nfljersey.us.com/ nearby http://knicks.nba-jersey.com/ streets, http://www.mlb-jerseys.us.com/ did http://www.michael-korshandbags.us.org/ not http://www.babylisspros.in.net/ find http://www.toryburchsale.com.co/ the thief. Rock http://www.katespades-outlet.in.net/ anxious to http://texans.nfljersey.us.com/ I http://www.air-maxschoenen.nl/ do http://dolphins.nfljersey.us.com/ not http://www.salomon-schuhe.com.de/ know http://www.raybans-outlet.it/ what http://www.michael-kors-australia.com.au/ to http://www.rolex-watches.us.com/ do, http://www.nike-outlet.us.org/ the police http://www.nike-air-force.de/ comfort http://www.burberrys-bags.net.co/ him http://pistons.nba-jersey.com/ to the http://trailblazers.nba-jersey.com/ police http://www.reebok.com.de/ will http://rayban.blackfriday.in.net/ catch http://www.tomsshoes-outlet.us.com/ people as soon as http://www.toms-outlets.us.com/ possible http://pacers.nba-jersey.com/ to http://www.coach-factoryyoutletonline.net/ help him get back http://www.christian-louboutins.in.net/ the http://magic.nba-jersey.com/ phone, http://coachoutlet.euro-us.net/ but the http://www.raybanoutlet.ca/ rock http://www.coach-outlets.net.co/ know http://www.converses-outlet.com/ even caught http://www.adidassuper-star.de/ the http://patriots.nfljersey.us.com/ people, the http://www.michaelkorsoutletonline.net.co/ phone http://www.tnf-jackets.us.com/ is hard to http://www.toms-shoe.us.com/ find back. http://www.newbalanceshoes.com.es/ Although http://www.omega-watches.com.co/ the http://raiders.nfljersey.us.com/ hope is http://heat.nba-jersey.com/ slim, but http://www.replica-handbags.net.co/ the http://www.oakley.com.de/ rock http://www.christianlouboutin.org.uk/ is http://www.converse.com.de/ still http://www.ralphlaurencanada.ca/ hope, http://www.jordanretro.org/ at http://www.airmax-90.org/ the same http://www.ralph-laurenspolo.co.uk/ time http://saints.nfljersey.us.com/ on http://www.swarovskijewelrys.in.net/ the http://www.womenclothes.in.net/ network released http://www.oakleys.org.es/ this matter, http://www.new-balance-schuhe.de/ hoping http://cavaliers.nba-jersey.com/ to help users with http://www.nike-max.fr/ the http://bengals.nfljersey.us.com/ power http://www.raybans-sunglass.com/ to http://www.pulseraspandora.com.es/ help http://www.swarovski-australia.com.au/ him http://www.nba-jersey.com/ find http://www.toms-shoes.net.co/ that http://www.michael-korsoutlet.cc/ he is http://www.oakleys-sunglasses.in.net/ very http://www.cheap-nike-shoes.net/ important mobile http://www.coach-outletonline.net.co/ phone. http://www.co-aol.com/ But http://www.michaelkorsoutlet-online.ar.com/ a http://www.coachoutlet-online.com.co/ month later, http://www.burberry-outletonline.cc/ the http://www.nfljersey.us.com/ rock still http://www.pandora.com.de/ did not http://www.tommy-hilfiger.co.nl/ find http://www.oakleysoutlet.it/ his http://www.oakleys.in.net/ cell http://www.cheap-rayban.com.co/ phone. http://www.designer-handbags.cc/ This http://www.polos-outletstore.net/ month, http://www.jordan-shoes.com.co/ the http://www.nike-roshe-run.de/ rock http://www.michaelkors.co.nl/ often http://www.adidas-schuheonline.de/ do http://www.thenorthface.com.de/ not http://www.nikeair-max.es/ care, http://www.canada-gooses.net/ eat http://www.montres-pascher.fr/ well http://www.true-religions.com/ sleep http://www.chiflatiron.net.co/ well, the http://www.hermes-bags.net/ whole person http://www.dsquared2.us.com/ lost http://longchamp.blackfriday.in.net/ a http://www.oakleyssunglasses.in.net/ big circle. http://www.ralphlaurenonlineshop.de/ One http://www.salvatoreferragamo.in.net/ day, http://www.ralphs-laurenpolos.com/ the http://www.michael-kors.com.es/ rock driven http://www.michaeljordan.com.de/ to distraction http://www.nhl-jerseys.us.com/ to go on http://www.oakleyoutlet.ar.com/ the http://www.abercrombie-kid.us.com/ way to http://spurs.nba-jersey.com/ work, suddenly was http://www.valentino-shoesoutlet.us.com/ a person http://www.nike-mercurial.in.net/ hit a bit. http://lions.nfljersey.us.com/ Rock http://cowboys.nfljersey.us.com/ inadvertently http://www.coach-factoryoutlet.net.co/ looked http://www.cheapshoes.net.co/ at http://www.tommy-hilfiger-online.de/ him, http://www.basketballshoes.com.co/ suddenly http://www.nfl-jersey.us.org/ grabbed http://49ers.nfljersey.us.com/ the http://www.nikestore.com.de/ man shouted: http://www.michael-kors-outlet.us.org/ "My cell http://www.rolexwatches-canada.ca/ phone? The http://buccaneers.nfljersey.us.com/ phone http://www.truereligions.net/ back to http://www.nike-shoes.dk/ me!" http://www.mk-outletonline.us/ The http://www.cheap-rolex-watches.org.uk/ original man is http://www.barbour-jackets.us.com/ a http://www.airyeezy.us.com/ month http://www.michaelkors-bags.com.co/ ago to http://www.timberlands-paschere.fr/ steal the http://www.hermesbirkin-outlet.com/ rock http://www.newbalance-shoes.org/ phone http://kings.nba-jersey.com/ thieves, On http://www.barbours.us.com/ the. http://www.jimmy-chooshoes.com/ The http://www.celine-bags.org/ thief http://www.raybans-outlet.com.co/ scared http://www.prada-handbags.net.co/ to http://www.asicsoutlet.us.org/ say http://www.newoutletonlinemall.com/ that http://michaelkors.blackfriday.in.net/ he http://www.the-north-face.org.uk/ did http://www.nikefreeshoes-inc.co.uk/ not http://www.mbt-shoes.us.com/ know http://www.nikeairmaxnc.co.uk/ what http://www.nba-shoes.com/ the rock http://www.nike-rosheruns.nl/ was http://www.newbalancecanada.ca/ saying, http://www.air-max.com.de/ rock http://celine.blackfriday.in.net/ kneeling on http://www.soft-ballbats.com/ the ground http://www.the-northface.ca/ to http://broncos.nfljersey.us.com/ ask the http://www.ferragamo.com.co/ thief, http://www.abercrombie-andfitch.ca/ tell http://www.longchamp-handbagsoutlet.us.com/ the http://www.ed-hardy.us.com/ thief http://www.kate-spades.com.co/ that his girlfriend http://www.prada.com.de/ left http://www.handbagsoutlet.in.net/ him http://www.katespadeoutlet.gb.net/ the http://bulls.nba-jersey.com/ last gift, http://jets.nfljersey.us.com/ the http://www.michael-korsbags.org.uk/ phone http://www.truereligionjeans.net.co/ is her photo and recording, http://www.rolex-watches.net.co/ he http://www.the-northface.com.co/ is http://michaelkors.euro-us.net/ alive Hope http://www.oakley-outlet.net.co/ and http://www.puma-shoes.de/ motivation. http://www.nikeshoesoutlet.org.uk/ The http://www.ralphlaurens-outlet.co.uk/ thief http://www.burberry-bags.net/ heard http://packers.nfljersey.us.com/ guilty http://www.michaelkors-outletonline.cc/ that http://www.mcmbackpacks.in.net/ the phone has been sold, do not http://www.burberryoutlets.net.co/ know http://www.converse.net.co/ where http://www.timberlandbootsoutlet.us.com/ the. http://www.air-huaracheshoes.co.uk/ Rock despair fell http://www.armani-exchange.in.net/ to http://www.ralph-laurenoutletonline.in.net/ the ground, silently http://www.canada-goosesjackets.com/ tears. Rock http://www.nike-tnrequinpascher.fr/ to http://www.poloralphlaurenoutlet.net.co/ the http://www.philipp-plein.us.com/ girlfriend's http://nuggets.nba-jersey.com/ tomb, http://www.burberryoutlet-sale.com.co/ over http://www.juicycoutureoutlet.net.co/ and http://www.p90xworkout.in.net/ over http://www.coachfactory.shop/ again on http://www.juicycouture.com.co/ the tombstone http://www.oakleys2016.com/ on the http://www.ralph-laurens.org.uk/ photo http://www.converse-shoes.net/ that smile http://colts.nfljersey.us.com/ bright http://www.pandoras-charms.org.uk/ girl http://www.airmax-2015.org/ said http://www.coach-factory.in.net/ sorry: http://www.adidasshoes.org.es/ "I'm sorry, http://www.tommyhilfigerca.ca/ can http://www.burberry-outlets.org.uk/ not http://www.sunglasses-outlet.net/ keep http://www.truereligion-outlet.com.co/ your http://www.nikerosherun.us/ gentle ... ... http://www.beatsbydre.com.co/ I'm http://www.abercrombiehollister.nl/ sorry, http://www.oakley-sunglasses.mex.com/ I http://titans.nfljersey.us.com/ was http://www.swarovski-canada.ca/ useless http://www.wedding-dresses.cc/ ... http://www.fendi-outlet.in.net/ ..." breeze http://www.michaelkorsoutlet.ar.com/ gently http://www.rayban-sunglasses.co/ Blowing, http://www.nikefree5.net/ quiet http://www.abercrombie-and-fitch.us.com/ cemetery http://www.supra-shoes.org/ only the http://www.rayban-pas-cher.fr/ sound of http://www.burberry-handbagssale.com.co/ his crying http://www.toms--outlet.com.co/

http://www.hugo-bossoutlet.com/

Comment by whn 23 weeks and 4 days ago

Your point of view

You must be signed in to comment.