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

output your microphone to a remote computer's speaker

Terminal - output your microphone to a remote computer's speaker
dd if=/dev/dsp | ssh -c arcfour -C [email protected] dd of=/dev/dsp
2009-02-08 10:10:00
User: morpheus
Functions: dd ssh
204
output your microphone to a remote computer's speaker

This will output the sound from your microphone port to the ssh target computer's speaker port. The sound quality is very bad, so you will hear a lot of hissing.

Alternatives

There are 3 alternatives - vote for the best!

Terminal - Alternatives
arecord -f dat | ssh -C [email protected] aplay -f dat

Know a better way?

If you can do better, submit your command here.

What others think

how do you... un-output it?

Comment by Svish 410 weeks ago

Control-c ?

Comment by DavieBaby 407 weeks and 5 days ago

then

cat /bin/bash > /dev/dsp

which takes each byte and interprets it as a frequency (number of waves per second, HZ) and the sound driver plays it.

Comment by anzan 401 weeks and 1 day ago

wow, that looks really scary.

Comment by unixmonkey3883 399 weeks and 3 days ago

That is freaking awesome.

Comment by brephophagist 398 weeks and 3 days ago

Any hint to make this work on Leopard ?

Comment by sitaktif 393 weeks and 6 days ago

Would be sweet if i knew how to make this work for Leopard. Any thoughts?

Comment by fastrack20 393 weeks and 3 days ago

Leopard does not use /dev/dsp, so there should be some alternatives to it

Comment by foremire 381 weeks and 3 days ago

Has anyone found a solution in 10.5/6?

Comment by megrimm 361 weeks and 4 days ago

Do it trough SSH and output to your own machine and your a spy :P

Comment by Meeko 360 weeks and 5 days ago

Mac OS X uses coreaudio to input and output sound. No UNIX sound device drivers are present, and, in fact, they are frowned upon by Apple as primitive and ugly. Thus, they will probably never be added to Mac OS X :-/.

Comment by morpheus 359 weeks and 6 days ago

Very Good!!!

Comment by alwaro78 334 weeks and 3 days ago

how did u find it?

Comment by deargodzw 295 weeks ago

That's cool!

Comment by regding 267 weeks and 6 days ago

Since /dev/dsp is obsolete & missing from Ubuntu, what was that command to wrap those old programs to use PulseAudio instead?

Comment by klepsydra 245 weeks and 4 days ago

That is awesome. Pure CommandLineFu!

Comment by thecamelcoder 240 weeks and 1 day ago

for ubuntu i use this one "arecord -f dat | ssh -C [email protected] aplay -f dat" (replace the 'dat' with 'cd' to get 44100hz instead of 48000 quality is very good but not so heavy on the bandwidth)

Comment by srulikuk 186 weeks and 6 days ago

@srulikuk: I like yours better :-)

Comment by morpheus 186 weeks and 6 days ago

I've successfully tested these between two Macs that have the sox binary:

Send microphone input from local machine to remote machine's speakers:

path/to/sox -V0 -d -p | ssh [email protected] path/to/sox - -d

Send microphone input from remote machine to local machine's speakers:

ssh [email protected] path/to/sox -V0 -d -p | path/to/sox - -d

The '-V0' is optional?I just prefer not to see the warning messages.

Here's the link for the sox download for Mac OS X:

http://sourceforge.net/projects/sox/files/latest/download?source=files

Use the binary (the UNIX executable file named 'sox') inside the download folder.

Comment by member1936 132 weeks and 3 days ago

@member1936 : Hi, i tried but couldn't do the same between my two Macs with sox. I succeeded on playing a local wav file to distant speakers but when I try default input and output I have this : FAIL formats: can't determine type of `-'

Any advice, clue or idea ? Thanks a lot.

Comment by nitnok 127 weeks and 1 day ago

2016-1-26 xiaozhengm

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

http://www.fitflopuk.me.uk

http://www.michaelkorsukbag.co.uk

http://www.get-coachoutletonline.org

http://www.michaelkors-handbag.me.uk

http://www.runningshoes.com.co

http://www.toms-outlet.cc

http://www.ugg-boots-store.com

http://www.louboutinshoes.cc

http://canadagoose.outletmalls.us.com

http://www.nike-blazerlow.fr

http://uggs.uggaustralia.qc.com

http://www.nikestoreuk.me.uk

http://www.true-religionjeans.net.co

http://coach.outletmalls.us.com

http://www.adidasshoes.name

http://michaelkors.adsmall.us.com

http://www.hermesbelt.in.net

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

http://coach.eshopping.us.com

http://louisvuitton.outletmalls.us.com

http://www.hermesuk.org.uk

http://www.katespadeoutletsale.in.net

http://toms.adsmall.us.com

http://www.fitflopssaleclearance.com

http://michaelkors.eshopping.us.com

http://ugg.adsmall.us.com

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

http://www.canadagoosejackets.org.uk

http://ugg.eshopping.us.com

http://www.timberlanduk.me.uk

http://www.jordan13.org

http://christianlouboutin.outletmalls.us.com

http://www.coachoutlet-storeonline.in.net

http://www.instylermax.in.net

http://www.coachfactoryoutletus.in.net

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

http://tiffany.outletmalls.us.com

http://www.louboutin.org.uk

http://www.monclerjacketsoutlet.us.com

http://louboutin.adsmall.us.com

http://www.louisvuitton-borse.it

http://www.mcmhandbags.name

http://www.truereligion-outlet.com

http://www.new-balanceoutlet.us

http://www.louisvuitton-sac-pascher.fr

http://www.outlet-toms.cc

http://canadagoose.shopgioia.com

http://www.coach-factory-outlet-online.us.com

http://www.top-coachoutletstore.org

http://www.edhardy-outlet.name

http://www.jordan6.net

http://www.longchamphandbags.com.co

http://www.chaussurelouboutin-pascher.fr

http://www.ghdstraighteners.me.uk

http://www.nike-tn-pascher.fr

http://www.saclongchamp-solde.fr

http://www.coachcanadaoutlet.ca

http://burberryoutlet.outletmalls.us.com

http://sunglasses.outletmalls.us.com

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

http://www.nikefreeruns.uk

http://michaelkors.outletmalls.us.com

http://www.mk-michaelkorsoutletonline.com

http://www.cheaplouisvuittonhandbags.org

http://burberry.eshopping.us.com

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

http://www.airjordan-pascher.fr

http://www.ralphlaurenuk.me.uk

http://www.moncler-jackets.org

http://www.adidassuperstar.co.uk

http://abercrombie.shopgioia.com

http://www.authenticlouisvuittonhandbags.net

http://www.airforce1-nike.fr

http://www.coach-factoryoutlet.cc

http://www.coachoutletonlinespick.org

http://www.coachouletbtf.com

http://rayban.eshopping.us.com

http://www.ghdhairstraighteners.com.co

http://www.ralph-lauren-pas-cher.fr

http://ralphlauren.shopgioia.com

http://rayban.adsmall.us.com

http://www.mcmoutlet.us

http://www.louisvuittonuk.me.uk

http://www.jordan-femmepascher.fr

http://www.toms.in.net

http://burberry.outletmalls.us.com

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

http://oakley.adsmall.us.com

http://www.basketballshoes.net.co

http://ugg.shopgioia.com

http://www.raybansoutlet.in.net

http://www.mizunorunningshoes.in.net

http://www.pandoracharms.com.co

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

http://www.michaelkorsoutletoff.in.net

http://www.tomswedges.in.net

http://ugg.outletmalls.us.com

http://www.cheapjordansshoes.in.net

http://www.mymichaelkorssoutlets.org

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

http://www.michaelkors-handbags.me.uk

http://www.nikeblazers.me.uk

http://burberry.shopgioia.com

http://timberland.adsmall.us.com

http://coach.adsmall.us.com

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

http://www.nikesb.uk

http://www.nikerosherunwomen.me.uk

http://www.christianlouboutinuk.me.uk

http://www.ugg-boots-australia.com

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

http://www.michaelkors-discount.com

http://www.polooutlet.us.com

http://www.niketrainers.com.co

http://www.airmax95.org.uk

http://www.montblancpens.us.org

http://www.adidasuk.org.uk

http://www.poloralphlauren.net.co

http://www.rolex-replicawatches.com.co

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

http://www.jordan3.net

http://www.cheapwholesaleuggboots.com

http://hollister.shopgioia.com

http://www.michaelkorshandbags.cc

http://www.fitflops.in.net

http://www.snapbacks-wholesale.us

http://www.edhardyukclothing.me.uk

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

http://www.fitflops.us

http://www.raybans.org.uk

http://northface.outletmalls.us.com

http://nike.outletmalls.us.com

http://www.michaelkorsoutletforus.com

http://www.toryburchoutlet-sale.in.net

http://www.juicy-couture.us

http://www.raybansunglassesdeals.com.co

http://www.louis-vuittonhandbags.us

http://www.quality-outlet.com

http://christianlouboutin.eshopping.us.com

http://www.cheap-tomsoutlet.us

http://www.longchampoutlet.net.co

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

http://www.louisvuittonoutlets.name

http://www.coach-factoryoutlet.eu.com

http://www.tomsshoes.us.com

http://www.canadagooseoutlet.cc

http://canadagoose.adsmall.us.com

http://www.adidasgazelle.me.uk

http://christianlouboutin.shopgioia.com

http://www.kate-spadeoutlet.com.co

http://www.pradaoutlet.name

http://www.guccioutlet.com.so

http://www.jordan4.net

http://canadagoose.eshopping.us.com

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

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

http://www.nikerosheruns.me.uk

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

http://oakley.shopgioia.com

http://www.sunglass-outlet.us

http://www.chiflatiron.in.net

http://www.tomsoutletstore.in.net

http://www.coachoutletstoreonlines.us

http://www.gucci-borse.it

http://www.jordan8.net

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

http://www.chaussure-louboutin.fr

http://www.michaelkors-outletsale.com

http://www.michael-korsuk.me.uk

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

http://burberry.adsmall.us.com

http://www.montblanc-pens.name

http://www.sac-longchamppliage.fr

http://www.saclongchamp--pascher.fr

http://www.michaelkorsoutletvip.in.net

http://www.cheapjordans.com.co

http://www.louisvuitton-outletstores.org

http://www.marc-jacobs.in.net

http://www.pandorajewelryoutlet.name

http://www.christianlouboutinsell.net

http://www.michael-kors-handbags.uk

http://rayban.shopgioia.com

http://www.oakleysunglassesfake.in.net

http://www.kate-spadeoutlet.us

http://www.coach-factoryoutlet.com.co

http://www.gucci-outlet.org

http://www.adidas-shoes.me.uk

http://ralphlauren.eshopping.us.com

http://oakley.eshopping.us.com

http://www.vipmichaelkors-outletonline.com

http://www.canadagooseuk.me.uk

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

http://www.kate-spadeoutlet.in.net

http://truereligion.adsmall.us.com

http://jordan.outletmalls.us.com

http://www.guccioutlet.net.co

http://www.nikeuk.me.uk

http://www.katespadeuk.me.uk

http://www.christianlouboutinoff.us

http://www.nikecortez.com.co

http://www.nikehuarache.com.co

Comment by xiaozhengm 51 weeks ago

In the event that, through Nyc to London and from Quotes for you to Peking, a lot more than 2 million site visitors currently have respected his / her designs with galleries and museums, his or her style is actually depicted first and foremost together with tone, living, movements and the report of women, which he more popularly characterizes since 1958, the particular date involving the initial selection with regard to Orlando Dior, makinged your guy well-known all over the world.The past involving handbags occurs period initially from the century. At the start, bags were a guys's accent, that they can remaining up until the idea was linked to women. But because guys's model grows additional organised, mens bags are generally once again rebounding. At least they are a minor more durable in comparison with slipped leaves.Potentially this globe's nearly all well-known lavish brand is definitely Outlet Keep. Because of the fact the reason is beginning in the actual 19th century, possesses truly established by itself as being the main extravagance name brand with clothing, luggage, bags and also elements. They have held the tailor made connected with conscious and also extensive work design for every every extravagant item that bears yourrrre able to send well known LV company logo in addition to fleur-de-lis.Besides your released number tag cloud, yet another massive indicator of which regardless of whether a handbag can be man-made or even a true is the hang on cover your tackles that offers an economical seem. I'm not really hinting that handbags will not have plastic material wrappers around works with and you can constantly tell with the quality of the plastic material utilized. A few brand new bags currently have plastic-type addresses though not the second-hand bags. A display bag or perhaps an used bit, you then need to not discover the plastic covers at all. Considering that never ever works on low cost, you could plan to inquire the seller where he / she purchased this bag from you may notice plastic nonetheless within the deals with.It just took a few a long time ahead of the Vuitton label has been recognized all throughout Europe. In the course of their existence, Louis was obviously a a nice touch in the model entire world. Which is proved with the numerous investings they embarked on, each of which in turn panned away amazingly.Oakley glasses have numerous alternatives. You could possibly find the Cookware in shape, Iridium or maybe prescription geared up. The actual Far eastern match glasses come in many designs, for instance polarized Snow as well as Quick Coat.It is often a minimal more challenging to seek out premium wedding get together paper in comparison with it can be for you to put any couture handbag, besides if even so it's actually a incredibly popular, home introduced bag. This particular merely signifies we now have very few wedding ceremony welcome designers which are promoting on their own seeing that "couture.Inch It is wonderful mainly because all those wedding party get together invite small business could have the potential to inquire about a lot all the more as long as they increased to arrive with regard to their designs. As a substitute, you have the possible ways to locate premium wedding paper that happen to be visiting fit as part of your marriage ceremony budget. You happen to be simply going to need to view http://www.hermesbeltsbirkinkellybag.co.uk/ somewhat trickier.When the idea came into existence trendy for female to hold baby dolls putting on smaller variants of their ensemble (some sort of mini-me, in a types of conversing), designers connected with handbags would most likely create a couple sizes of their styles'"catching even littlest fine detail within the dollies' small handbags.

Comment by stephanieg915 16 hours ago

To start with, read the wrapping of parfum or even bathroom drinking water. Within the forgery you can see different types of stunning unclear producing layout, for instance -- too small or obscure thoughts and dreams. You need to know - thoughts and dreams about the initial are invariably clear in addition to organised.For people seeking to stick to tradition, taking a basic square kind is the better course of action. Tend not to go with the approaches that has a reddish end or distinctive colors. A simple fantastic finish off is the greatest path to take. However, for the people looking to additionally bring some consideration, a sensational white-colored finish over a uncomplicated, spherical deal with can also do the job rather effectively. All depends for the assertion that you will be aiming to produce.A team of people led by Todd Lippiatt associated with Aristone Real estate Funds is here can provide relief from 245 10 Path, the particular 11-story condo at the Large Line that was experiencing foreclosed actions and many lawsuits. The actual investors have obtained the personal debt holders for the home, including Citigroup in addition to Hudson Real estate Cash, which have filled out to confiscate their particular $43.A few trillion home finance loan past Walk. Today, using the foreclosures action withdrawn, and also the legal actions, submitted by installers more than supposedly unsettled function, paid out, the project will be in schedule to first appearance in the year.During the particular 50's and Seventies Swiss watchmakers acquired huge opposition by Asia for example Seiko. To be able to regain industry Nicolas Gary the gadget guy. Hayek, your founding father of Swatch, released a new number of Swatch wrist watches. In reference to his endeavor, actually is well liked wished to increase the interest in analog designer watches above the right now common digital camera designer watches.Extell Progress acquired two methods nearer to obtaining the go-ahead through the city about the Three or more.1 million-square-foot Riverside Heart venture, using single endorsement by two Town Authorities committees. The actual 'yes' votes simply by both the Committee about Territory Employ as well as the Subcommittee with Zoning in addition to Operations are expectant indicators for that challenge since it mind with a last election from the full Town Authorities after this kind of month.Michael Kors wrist watches are manufactured using genuine individuals head also it echos within their very feasible looks. You are able to hardly ever make a mistake which has a classy wrist watch ( space ) regardless if you are putting on the full match or maybe a new jacket with jeans. It truly is intended to be tasteful and complicated with just about all scenarios.The Skorpios assortment of luggage with this developer has a various approach to final the most notable. This kind of exclusively formed small carrier has a collected or drawstring top that induce an interesting structure for your item. The explained deals with are usually highlighted along with metallic clasps inside silver and gold. This specific bag can be purchased in many colors which includes dark-colored, bright as well as a metallic platinum.Jay-Z has gotten to a settlement with his loan companies in the web page of a designed store hotel near the Excessive Range and has deeded the home time for these to the valuation on the actual senior home finance loan. The particular hip-hop tycoon, whose offered label is definitely Shawn Billings, experienced connected with property investors Charles Blaichman as well as Abram Shnay to buy the internet site, an early Time period Warner Wire storage place from 511 Gulf Twenty first Neighborhood, inside The year 2007. The property was to end http://www.hermesbeltsbirkinkellybag.co.uk/ up being the initial of many J Resorts, nevertheless the plan seemed to be foiled in the event the companions past due on their own $52 mil older mortgage within August 2009, driving a legitimate challenge more than their own interest rates.

Comment by stephanieg915 15 hours ago

The ladies handbags can be extremely extremely important equipment this also it is section of girls wherever you go this is essential. At any place women move, you won't come across any person making your home without handbags. These days handbags are getting to be a critical fashion accessory. Looking at their home for being actually essential for women to decide on handbags which can help throughout offering an extensive look for these individuals. You can also get these types of bags coordinating along with your attire. Cures bags are said to get very varied. Distinct patterns in addition to sizes connected with handbags can be found in marketplace. These types of bags will let you give a great vogue record. However you like industry these types of bags tend to be owning. They search genuinely really trendy and attractive. A sense complexity is actually involved with females using these handbags. The particular claims being introduced for females to be able to quickly store various personal products and personal papers of these bags. Your scoot pouches may also be right now there within the bag.The females handbags are typically used on daily basis. Most of these bags are designed with higher high quality resources so they can are a good length of time. The products these kinds of http://www.hermesbeltsbirkinkellybag.co.uk/ bags means that they will continue for an extended period of time and may sustain a look nice glimpse. These kind of bags are already fixed with different storage area segments that in essence are available very convenient pertaining to security saving of several stuff like cellphone, secrets, small etc which usually ladies have to hold along with you. The kinds of most of these handbags are extremely much appealing that you can't cease oneself through getting. It is also a really wonderful reward object that you can design it for your beloved ones in virtually any wedding day. These kinds of handbags can be extremely very challenging. The truth is, their own need is increasing after a while by. Now you can find they handbags through various web sites. There are many websites on the internet can be found by which anybody can get these handbags. You should check out the costs of those bags. Printed top quality handbags can be found in web sites. You just need to get it online and you will have the shipping for your door step. This is the principal selling point of taking handbags through internet shopping.

Comment by stephanieg915 5 hours ago

Your point of view

You must be signed in to comment.