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

Copy something to multiple SSH hosts with a Bash loop

Terminal - Copy something to multiple SSH hosts with a Bash loop
for h in host1 host2 host3 host4 ; { scp file user@$h:/destination_path/ ; }
2009-02-16 01:02:35
Functions: file scp
7
Copy something to multiple SSH hosts with a Bash loop

Just a quick and simple one to demonstrate Bash For loop. Copies 'file' to multiple ssh hosts.

Alternatives

There are 10 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

There is an error : it should be user@$h

And after works on Ubuntu

Pierre

Comment by master666 332 weeks ago

Within a present cultural situation in which wider public tend to be shelling out a lot of money trendy goods, the phenomenon pertaining to custom made handbags stand inescapable. This concept of hauling custom made handbags will not be new. Not only it gives you buyers an exceptional fashion sense and delight and also tenders in addition to possibility take advantage legitimate products. If you decide to buy your favorite designer bag, ensure that you get the idea from some esteemed vendors in the market. You must however take into account many components prior to buying your goods.Designer retailers within the respected promotes set custom items available for sale for that buyers who need to look for artist and economical handbags. Typically, many people publicize their particular sale some time in mid-year, as a result of May as well as August. In addition, they present great lower price around 20-40% to help astound this potential buyers to purchase more handbags with one particular head out. Though buying the designer handbags, you have to be crystal clear with the needs as well as preference. Remember principle coloration choice and magnificence in the bag you want to obtain. At these types of shops chances are you'll acquire great savings with your acquire plus a best customer care likewise. Internet vendors may also be a great source to obtain their own most liked handbags with very affordable cost. Using the coming of e-commerce they have now grow to be to pick ones much-loved product or service along with genuineness as well as assurance. Alike retailers, these online retailers offer a chance to select preferred handbags from your large class of range of products and put your order herewith. Searching coming from a web-based keep is obviously which has a volume of add-ons in evaluating to your conventional mode of searching.Branded handbags can also be in a very big desire these days. This is the reason you may even for your brand name vendors whom try a world-wide reputation with giving luxury handbag, rightly so. Their items will almost always be of top quality given that they make use of excellent resources and also craftsmanship. In the market these days fashionable and cheap handbags range is accessible throughout plenty of styles and colors. This is why these bags come in even larger demand. Commonly, artist handbags are worldwide better known for their quality stitches and chic appears to be. When you head over to obtain a couple of inexpensive handbags as well as artist handbags, it is wise to find out the owner provides you with the best quality and assure to the merchandise.When you might be shelling out enough money in below wholesale developer handbags, you'll be able to surely have profitable benefits. Nevertheless, you will need to make certain you purchase most of these artist handbags coming from dependable on the internet merchant whom provide having whole guarantee and without any concealed http://www.hermesbeltsbirkinkellybag.co.uk/ expenses. Some sort of certainly mentioned among the real and also the phony artist items also needs to be on the top priority.

Comment by stephanieg915 1 day ago

Your selection of aromas ones watercraft vacation vessel will certainly maintain will surely have confidence in the particular vessel vacation range. A ton of luxury cruise filling handle to be able to gear up a reputable selection of merchandise. Search for several huge quite stars (Givenchy,, Lancome, as well as a great amount further) plus some a lot more present tag words (DKNY, Electrical outlet, Sentira Wang).Michael Kors OutletTo come across these kinds of impressive handbags you may also search the web for your objects. carries a large range of solutions coming from handbags, footwears in order to females's don as well as designer clothing. All of these items are readily accessible online for much a lesser amount of as compared to list.A bag keeps a rating approximately Thirteen?-inch broad all through all-time very low, 16-inch wide about the incredibly middle, 20?-inch wide through the entire most reliable back button 5 various?-inch exceptional by 11-inch very good. This opens via a permanent magnetic take drawing a line under, which will overall performance an internal energy blackout coating along with returning wall socket zero billfold, multiple purpose slip pocket, and so a facility zipper structure. This kind of provides twin is experienced with platinum pores and skin reduce and also 4-inch fall, and definitely a new platinum extractible shoulder joint band to maintain.Every merchandise from the Lodging 2014 Selection may well probably be applied effortlessly, normally in addition to glamorously by the young lady the loop. Certainly not unexpected that's in the foremost of any girl's get of economic being a fashion favourite.KLA-Tencor (Dow jones: KLAC) acquired it is purchase ranking editioned by simply experts with TheStreet. Your specialists composed, "KLA-Tencor Business (KLAC) was repeated through TheStreet Results to be a buy having a scores status regarding A-. The company sturdiness might be observed in multiple places, like it is mainly http://www.hermesbeltsbirkinkellybag.co.uk/ robust financial position having practical financial accountability levels with a lot of measures, eye-catching value degrees, increasing income structures, fantastic cash through treatments and also increase in inventory price tag during the past 12 months. We presume most of these talents outnumber the belief that your business features actually acquired fairly breakable development in income just about every share.Model Lexington MK 329 is usually a view which can be made in precious metal colour incorporates around call, wrist watch can also be really valuable as well as useful and it also a must. This watch enables you to work and might be within get-togethers.Wi-fi Fea options really allow Hospitality executives to penetrate this specific Modern day, although providing them with an added advantage inside an ever more aggressive market.Whatever your own style, you are certain to track down anything to suit, together with arrays through classic Ralph Lauren Violet Name as well as practical Costs Amberg to unique Lulu Guinness and vibrant Orla Kiely. The outlet in addition stocks and options the actual Hi Pet assortment through Manchester company Zatchels * only suitable for kids (or grown-ups which might be vibrant in the mind).

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.