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

Turn On/Off Keyboard LEDs via commandline

Terminal - Turn On/Off Keyboard LEDs via commandline
xset led 3
2009-10-23 00:25:56
User: m33600
5
Turn On/Off Keyboard LEDs via commandline

Usefull as a light blink to remember events, mails, intrusions, etc... yet another output

Since nobody ever uses the scroll lock function...

Usefull to interface a linux system with some hardware, for example, opto interfacing the keyboard led to a relay to remotely reset, etc. ( a simple LDR glued over the LED will do the trick )

xset led 3 turns on the third led, ie, Scroll lock

xset -led 3 turns it off

xset led 1 turns on Numerical Lock led ( doesn t work on all computer )

xset led 2 turns on Caps Lock led ( idem )

Using it as a reset watchdog, the relay expected light pulses. Shall the computer hangs, the relay releases and reset the machine ( discharge of a capacitor ) ;-)

Alternatives

There are 3 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Awesome!

Comment by DaveQB 417 weeks ago

Any CLI ascii to morse translators around?

Comment by rbossy 416 weeks and 3 days ago

this is what I call an idea!!!

Comment by m33600 416 weeks and 2 days ago

Try this:

http://freshmeat.net/projects/morse2led/

(it's in the AUR if you have Arch Linux)

Comment by matthewbauer 415 weeks and 3 days ago

I found that setleds worked better.

Usage:

setleds +num < /dev/tty7
Comment by matthewbauer 415 weeks and 2 days ago

Happy Xmes!

while true; do setleds -D -num < /dev/tty7; sleep 3; setleds -D +num < /dev/tty; done

Comment by Heoa 408 weeks and 3 days ago

err

while true; do setleds -D -num < /dev/tty7; sleep 3; setleds -D +num < /dev/tty; sleep 3; done

Comment by Heoa 408 weeks and 3 days ago

http://www.michaelkors-handbags.in.net

http://www.canadagoosejacketssale.us.com

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

http://www.michaelkorsoutletofficials.us.com

http://www.christian-louboutinoutlet.us.org

http://www.christianlouboutin.com.co

http://www.ralphlaurenpoloshirts.me.uk

http://www.lacosteoutlet.us.org

http://www.adidasshoes.us.org

http://www.coachfactoryoutletonlinestores.us.com

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

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

http://www.michaelkorsoutletclearancee.us.com

http://www.fitflopsaleclearance.us.com

http://www.polooutlet.name

http://www.coachfactoryoutletofficials.us.com

http://www.raybansunglassesformen.us.com

http://www.mbtshoesoutlets.us.com

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

http://www.nikeshoes.com.co

http://www.cheapuggboots.name

http://www.cheapuggboots.org

http://www.raybansun-glasses.com.co

http://www.fredperry.org.uk

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

http://www.valentinooutlet.in.net

http://www.polooutletralphlauren.us.com

http://www.oakleysunglasseswholesaler.us.com

http://www.montblancpensoutlet.com

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

http://www.yeezyboost350-v2.us.com

http://www.mcmoutletonline.us

http://raybansunglasses.co-sunglasses.com

http://nikeshoes.nike-com.com

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

http://www.truereligionjeanss.us.com

http://www.pandoraoutlets.us.com

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

http://www.lunetterayban.fr

http://www.airjordan4.us

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

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

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

http://www.mlbjerseys.net

http://www.adidasyeezyshoes.name

http://www.poloralphlaurenfactorystore.us.com

http://www.cheapjordans.name

http://www.edhardyclothing.us.com

http://www.michaelkorsoutletclearancehandbags.us.com

http://www.polo-ralphlaurenuk.me.uk

http://www.fitflops-saleclearance.us

http://www.cheapmlb-jerseys.us

http://www.nikeshoesoutlet.us.com

http://polooutlet.amegov.com

http://www.katespadeshandbags.us

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

http://www.canadagoose.name

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

http://www.ralphlaurenoutlets.org.uk

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

http://www.fredperrypoloshirts.co.uk

http://www.kate-spadeoutlet.us.org

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

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

http://www.polo-ralphlauren-pascher.fr

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

http://www.mbtshoescheap.us.com

http://www.pradaoutletstore.us

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

http://poloralphlauren.amegov.com

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

http://www.lebron-jamesshoes.us.com

http://www.cheapuggs.name

http://www.michaelkorsoutlet-clearance.org

http://www.oakleysunglasseswholesales.us.com

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

http://adidasyeezyshoes.adidassale.net

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

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

http://www.longchampoutlet.us.org

http://www.nikeoutlet.com.co

http://www.oakleysunglasseswholesalee.us.com

http://www.oakleysunglassescheaps.us.com

http://www.fredperryoutlet.us.com

http://www.longchampoutletofficial.us.com

http://www.coachfactory-outlet.eu.com

http://www.adidasoutlet.com.co

http://www.asicsrunningshoes.us.com

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

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

http://www.oakleysunglassesformen.us.com

http://www.nhljerseyss.us.com

http://cheapraybansunglasses.co-sunglasses.com

http://www.coachfactoryoutletmiami.us.com

http://www.coachoutletcoachoutletstore.us.com

http://www.adidasoutlet.us.org

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

http://www.michaelkorsoutletofficial.com

http://www.hermesbeltsoutlet.us.com

http://www.pandoraoutletstore.us.com

http://www.michaelkorsoutlet-clearance.us

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

http://www.ralphlaurenoutletonlinestore.us.com

http://www.ralphlaurenofficial.us.com

http://www.michael-korshandbags.in.net

http://www.michaelkorsoutletonlinestore.us.org

http://www.oakleysunglassesfactory.us.com

http://www.polooutlet.us.org

http://www.raybanssun-glasses.com.co

http://www.coachoutletonlinecoachfactoryoutlets.us.com

http://www.michaelkorssoutletclearance.us.com

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

http://nikeshoes.up-nike.com

http://www.poloralph-laurenuk.co.uk

http://www.michael-korsoutletstore.in.net

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

http://www.canadagoosejacketss.com.co

http://www.christian-louboutinshoes.us

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

http://www.cheapnfljerseys.eu.com

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

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

http://www.nike-shoes.us.org

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

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

http://www.raybansunglassesonsale90off.us.com

http://www.fitflopssaleclearance.name

http://www.coachoutletcoachfactoryoutlets.us.com

http://www.airjordan.us.org

http://www.canadagoose-outlets.com.co

http://raybansunglassesoutlet.co-sunglasses.com

http://www.uggoutlet.name

http://www.oakleysunglassesss.us.com

http://www.canadagooses.com.co

http://www.ralphlaurenshirts.me.uk

http://www.michaelkorsoutlet-clearance.com

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

http://www.oakleysunglasseswholesaleonline.us.com

http://www.coachoutletonlinecoachfactoryoutlet.com.co

http://www.kate-spadeoutletstore.us.com

http://www.nbajerseyss.us.com

http://yeezyboost.adidassale.net

http://www.nikeoutletstorelocations.com

http://www.montblancpenss.com.co

http://www.pandorajewelrycharms.us.com

http://www.mulberryhandbagsuk.co.uk

http://www.hermesbirkins.us.com

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

chenlili20170503

Comment by chenyingying 24 weeks and 2 days ago

The buzz these http://www.huaracherunpas-cher.fr/nike-air-zoom-huarache_89.html days http://www.huaracherunpas-cher.fr/nike-air-huarache-og-retro_101.html is dependant on offering hottest http://www.huaracherunpas-cher.fr/nike-air-huarache-run-chaussures_174.html goods precisely trendy garments, http://www.huaracherunpas-cher.fr/nike-huarache-2_166.html shoes, hand http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine_64.html bags as well as http://www.huaracherunpas-cher.fr/air-max-huarache_39.html other standard apparel that http://www.huaracherunpas-cher.fr/huarache-noir_86.html people have on http://www.huaracherunpas-cher.fr/nike-huarache-free-light_134.html everyday and so http://www.huaracherunpas-cher.fr/air-huarache-nike_87.html on special occasions. Having said http://www.huaracherunpas-cher.fr/nike-air-huarache-run-pas-cher_98.html that, since http://www.huaracherunpas-cher.fr/nike-air-huarache-og_162.html the majority suppliers target http://www.huaracherunpas-cher.fr/chaussures-air-huarache_128.html delivering clothes which have been http://www.huaracherunpas-cher.fr/huarache-femmes_170.html depending on most http://www.huaracherunpas-cher.fr/air-huarache-blanc_123.html of these http://www.huaracherunpas-cher.fr/air-nike-huarache_107.html movements, a few other basics are http://www.huaracherunpas-cher.fr/huarache-bordeaux_53.html generally neglected http://www.huaracherunpas-cher.fr/achat-nike-huarache_137.html for example those http://www.huaracherunpas-cher.fr/huarache-og_183.html which bring doing exercises. Thankfully, http://www.huaracherunpas-cher.fr/nike-huarache-light-ultramarine_171.html funds online http://www.huaracherunpas-cher.fr/nike-huarache-leopard_57.html shops which can be giving http://www.huaracherunpas-cher.fr/nike-air-huarache-mid_78.html these http://www.huaracherunpas-cher.fr/nike-huarache-blanc_85.html types of particular points while http://www.huaracherunpas-cher.fr/huarache-beige_106.html using merely http://www.huaracherunpas-cher.fr/huarache-og-2017_143.html change these particular items http://www.huaracherunpas-cher.fr/nouvelle-nike-huarache_82.html are supplied in http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-bleu_130.html a price tag that's lower http://www.huaracherunpas-cher.fr/nike-air-huarache-chaussures_80.html compared to the market http://www.huaracherunpas-cher.fr/nike-huarache-id_164.html price.Airmaxsky4u.org is undoubtedly http://www.huaracherunpas-cher.fr/nike-huarache-fille_148.html an shopping on http://www.huaracherunpas-cher.fr/nike-air-huarache-retro_70.html the internet company that's offering http://www.huaracherunpas-cher.fr/nike-huarache-free-run-pas-cher_156.html that specific the prices http://www.huaracherunpas-cher.fr/huarache-acheter_83.html http://www.huaracherunpas-cher.fr/nikeair-huarache_88.html benefits. The site presents http://www.huaracherunpas-cher.fr/nike-air-huarache-international_104.html athletic shoes which are http://www.huaracherunpas-cher.fr/nike-huarache-solde_94.html designed according to the latest http://www.huaracherunpas-cher.fr/nike-huarache-2013_159.html styles any way http://www.huaracherunpas-cher.fr/nike-air-huarache-blanche_153.html you like. Furthermore http://www.huaracherunpas-cher.fr/huarache-4_118.html , it affords the latest http://www.huaracherunpas-cher.fr/nike-air-huarache-original_144.html sports activity sneakers, http://www.huaracherunpas-cher.fr/nike-huarache-paris_69.html vogue shoes, as well as http://www.huaracherunpas-cher.fr/nike-air-huarache-taille_172.html clothes that people http://www.huaracherunpas-cher.fr/nike-huarache-usa_114.html will obviously like to http://www.huaracherunpas-cher.fr/nike-air-huarache-prix_120.html unique. This http://www.huaracherunpas-cher.fr/nike-huarache-violet_54.html kind of buying online http://www.huaracherunpas-cher.fr/free-huarache_103.html organization has now combined http://www.huaracherunpas-cher.fr/huarache-nike-pas-cher_79.html by of the http://www.huaracherunpas-cher.fr/nike-air-huarache-light-pas-cher_44.html biggest providers around http://www.huaracherunpas-cher.fr/air-huarache-og_71.html the globe that will supply http://www.huaracherunpas-cher.fr/huarrache-blanche_135.html them http://www.huaracherunpas-cher.fr/nike-air-flight-huarache_102.html with the many trendy http://www.huaracherunpas-cher.fr/nike-id-huarache_158.html products folks are trying http://www.huaracherunpas-cher.fr/nike-huarache-1991_55.html to find. The http://www.huaracherunpas-cher.fr/nike-air-huarache-beige_112.html fashionable sports shoes in which http://www.huaracherunpas-cher.fr/nike-huarache-gris_59.html Airmaxsky4u.internet offers incorporates running http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-rose_58.html shoe Air Footscape http://www.huaracherunpas-cher.fr/nike-huarache-taille_49.html Woven, Oxygen http://www.huaracherunpas-cher.fr/nike-huarache-boutique_147.html Utmost Ninety Current Moire http://www.huaracherunpas-cher.fr/nike-huarache-prix_66.html , running shoe Fresh air http://www.huaracherunpas-cher.fr/huarache-nike-chaussures_131.html Max 95 http://www.huaracherunpas-cher.fr/nike-huarache-3_108.html Hyperfuse, and economical footwear air flow http://www.huaracherunpas-cher.fr/nike-huarache-homme_141.html potential http://www.huaracherunpas-cher.fr/nike-air-force-1-huarache_113.html Three months.Airmaxsky4u.org is definitely an internet http://www.huaracherunpas-cher.fr/boutique-nike-huarache_151.html shopping corporation situated http://www.huaracherunpas-cher.fr/nike-huarache-safari_52.html in Hong Kong. Additionally http://www.huaracherunpas-cher.fr/nike-air-force-huarache_124.html it http://www.huaracherunpas-cher.fr/huarache-noir-et-blanc_96.html is viewed as the http://www.huaracherunpas-cher.fr/acheter-huarache_84.html most significant shopping online http://www.huaracherunpas-cher.fr/nike-air-huarache-2_92.html corporation that is http://www.huaracherunpas-cher.fr/nike-huarache-jd_46.html certainly offering some of the http://www.huaracherunpas-cher.fr/huarache-free-run_145.html most recent http://www.huaracherunpas-cher.fr/nike-huarache-rouge_81.html in vogue like http://www.huaracherunpas-cher.fr/huarache-noir-femme_60.html footwear, trainers, plus clothes. Due to http://www.huaracherunpas-cher.fr/nike-air-huarache-1991_65.html the reference http://www.huaracherunpas-cher.fr/air-huarache-light_139.html to earth's main and http://www.huaracherunpas-cher.fr/air-huarache-homme_67.html top notch http://www.huaracherunpas-cher.fr/nike-huarache-free-run-2012_146.html service provider, people are http://www.huaracherunpas-cher.fr/air-huarache-grise_142.html at this moment in http://www.huaracherunpas-cher.fr/huarache-usa_100.html the great ability and http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine-og_75.html put where by they http://www.huaracherunpas-cher.fr/air-huarache-solde_40.html might buy trendy http://www.huaracherunpas-cher.fr/huarache-light-og_105.html trainers and clothes http://www.huaracherunpas-cher.fr/ with no need to http://www.huaracherunpas-cher.fr/nike-air-huarache-rouge_47.html look for somewhere http://www.huaracherunpas-cher.fr/huarache-chaussures_95.html else. Customers http://www.huaracherunpas-cher.fr/nike-huarache-beige_91.html only have to try http://www.huaracherunpas-cher.fr/nike-air-huarache-homme_150.html to find the website Airmaxsky4u.web, http://www.huaracherunpas-cher.fr/air-huarache-run_157.html pick from your http://www.huaracherunpas-cher.fr/huarache-leopard_77.html broad items to http://www.huaracherunpas-cher.fr/nike-air-huarache-safari_73.html be had inside, buy it http://www.huaracherunpas-cher.fr/nike-huarache-light-og_115.html , and the http://www.huaracherunpas-cher.fr/nike-air-huarache-light_168.html product can be http://www.huaracherunpas-cher.fr/nike-huarache-ultramarine_125.html brought to them.Airmaxsky4u.internet aims to give http://www.huaracherunpas-cher.fr/huarache-light_50.html these products http://www.huaracherunpas-cher.fr/huarache-5_74.html within an unrivaled value. This http://www.huaracherunpas-cher.fr/huarache-chaussure_122.html kind of just implies http://www.huaracherunpas-cher.fr/air-huarache-noire_117.html that these shoppers http://www.huaracherunpas-cher.fr/huarache-air-max_163.html who would like to http://www.huaracherunpas-cher.fr/nike-huarache-chaussures_129.html stay http://www.huaracherunpas-cher.fr/nike-air-max-huarache-hybrid_121.html in while using the http://www.huaracherunpas-cher.fr/nike-huarache-femmes_182.html hottest fads today http://www.huaracherunpas-cher.fr/chaussure-air-huarache_180.html can now reach that without the http://www.huaracherunpas-cher.fr/huarache-nike-noir_149.html need to expend http://www.huaracherunpas-cher.fr/nike-huarache-run-pas-cher_61.html lots http://www.huaracherunpas-cher.fr/huarache-instagram_169.html of funds. Additionally, it signifies that http://www.huaracherunpas-cher.fr/basket-nike-huarache_45.html buyers http://www.huaracherunpas-cher.fr/nike-huarache-toute-noir_154.html never need to pay back price http://www.huaracherunpas-cher.fr/chaussure-huarache-nike_173.html ranges that happen to http://www.huaracherunpas-cher.fr/nike-air-huarache-turquoise_160.html be http://www.huaracherunpas-cher.fr/nike-air-huarache-pas-chere_161.html approach above their hands or http://www.huaracherunpas-cher.fr/huarache-2017_99.html perhaps the http://www.huaracherunpas-cher.fr/air-flight-huarache_68.html market price in http://www.huaracherunpas-cher.fr/huarache-bleu_111.html the product or service because this http://www.huaracherunpas-cher.fr/nike-air-huarache-bleu_167.html online shopping clients http://www.huaracherunpas-cher.fr/air-huarache-noir_116.html are delivering stylish http://www.huaracherunpas-cher.fr/huarache-vintage_42.html running shoes plus http://www.huaracherunpas-cher.fr/air-huarache-paris_138.html shoes that can be http://www.huaracherunpas-cher.fr/nike-huarache-run_72.html purchased underneath the supposed http://www.huaracherunpas-cher.fr/chaussure-nike-air-huarache_76.html market price with the http://www.huaracherunpas-cher.fr/nike-huarache-femme-pas-cher_140.html merchandise.The benefit of http://www.huaracherunpas-cher.fr/huarache-montante_179.html the particular footwear http://www.huaracherunpas-cher.fr/nike-huarache-agassi_133.html Atmosphere Footscape http://www.huaracherunpas-cher.fr/nike-air-huarache-blanc_41.html Weaved plus Atmosphere Utmost http://www.huaracherunpas-cher.fr/basket-huarache_63.html 85 Existing Moire which might http://www.huaracherunpas-cher.fr/huarache-nike-blanche_127.html be offered by http://www.huaracherunpas-cher.fr/nike-huarache-marron_165.html Airmaxsky4u.net is http://www.huaracherunpas-cher.fr/huarache-run_132.html simply because tend to http://www.huaracherunpas-cher.fr/nike-air-huarache-run_43.html be certain to end http://www.huaracherunpas-cher.fr/nike-huarache-pour-femme_155.html up being special plus http://www.huaracherunpas-cher.fr/huarache-enfant_62.html extraordinary. Which means all http://www.huaracherunpas-cher.fr/nike-huarache-premium_126.html of the http://www.huaracherunpas-cher.fr/nike-huarache-magenta_51.html models the jogging shoes http://www.huaracherunpas-cher.fr/air-huarache-femme_90.html have got are different from http://www.huaracherunpas-cher.fr/nike-air-huarache-solde_181.html every http://www.huaracherunpas-cher.fr/huarache-noir-et-rose_109.html one of the goods that http://www.huaracherunpas-cher.fr/chaussures-huarache_56.html have been available in http://www.huaracherunpas-cher.fr/nike-air-huarache-noir_97.html a variety http://www.huaracherunpas-cher.fr/chaussures-huarache-nike_152.html of retail stores. For http://www.huaracherunpas-cher.fr/nike-air-flight-huarache-og_48.html people who are trying http://www.huaracherunpas-cher.fr/nike-air-huarache-90_110.html to find http://www.huaracherunpas-cher.fr/nike-huarache_93.html shoe Atmosphere Footscape Weaved in addition to Air Optimum Ninety days Latest Moire just by seeking this fabulous website, they could already be to all usually means chose the layout that they can favor above all, follow the tendency. Airmaxsky4u.web is a great online store the place customers could have his or her happiness in becoming in with this look in a less expensive price.

Comment by scott154 7 weeks ago

Your point of view

You must be signed in to comment.