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 via tar pipe while preserving file permissions (run this command as root!)

Terminal - Copy via tar pipe while preserving file permissions (run this command as root!)
tar -C /oldirectory -cvpf - . | tar -C /newdirector -xvf -
2009-08-22 20:05:49
User: Cowboy
Functions: tar
1
Copy via tar pipe while preserving file permissions (run this command as root!)

It's the same like 'cp -p' if available. It's faster over networks than scp. If you have to copy gigs of data you could also use netcat and the tar -z option in conjunction -- on the receiving end do:

# nc -l 7000 | tar -xzvpf -

...and on the sending end do:

# tar -czf - * | nc otherhost 7000

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
cp -pr olddirectory newdirectory
2009-08-22 22:11:24
User: stanishjohnd
Functions: cp
4

cp options:

-p will preserve the file mode, ownership, and timestamps

-r will copy files recursively

also, if you want to keep symlinks in addition to the above: use the -a/--archive option

tar cpof - src |( cd des; tar xpof -)
2009-09-20 20:43:30
Functions: cd tar
-2

Using tape archive create a tar file in Stdout (-) and pipe that into a compound command to extract the tar file from Stdin at the destination. This similar to "Copy via tar pipe ...", but copies across file systems boundaries. I prefer to use cp -pr for copying within the same file system.

Know a better way?

If you can do better, submit your command here.

What others think

It's not always faster because the encryption of ssh/scp is not always the bottleneck depending on your CPU. Sometimes tar is apparently faster because it is actually streaming the files, so there is a sort of buffering going on, whereas with scp there is not.

Comment by bwoodacre 387 weeks and 1 day ago

Remember to clean the top of bag prior to deciding to obtaining the particular out-of-season bag, in addition to, getting this clear Destroyed newspaper regimen and 100 % cotton coating in to the bag in case there is harmful the design on the bag, after which, position the bag into a soft pure cotton bag, at last and not the very least, you should make sure that the bag that is gathered in the showcase aren't going to be not healthy regarding the actual improper extrusion. Your cabinet which often gather the bag must keep ventilating, for example, your cabinet with a mix up is more preferable, simultaneously, do not http://www.hermesbeltsbirkinkellybag.co.uk/ put very much issues within the display case. Leather itself is the natural essential oil thus it helps to reduce as being the time period passes or usually utilizing. As a result, including the high-grade natural leather goods require the periodic preservation. I suggest you attract the rush to completely clean the item previous to each time you keep that. As for the common synthetic leather merchandise, you would far better position the great buckskin acrylic preservation initially. The way in which can be cleaning your fat around the organic cotton textile, and then, cleansing the counter associated with bag. In this way may keep away from position the acrylic about the bag specifically in case of damaging the particular bag. The most important method to conserve the bag is employing to become cherished. Be aware of the bag will not be nicked, soaked by water, polluted simply by blot with normal employ. It is the easiest sound judgment to keep the particular bag. Normally it's wise poor quality if you manage the idea following the difficulties come about.Leather has sturdy intake, focus on antifouling, in particular the high-grade leather-based solutions.Once weekly, utilizing the towel touching water and shake upward next dabbing the particular bag consistently If you will find mark for the bag, while using drenched sponge or cloth using gentle detergent pat the particular bag, then let it dry obviously, dont make use of a hair dryer to strike dried.If you actually spilt ingest within the synthetic leather, you should utilize the actual flannel or perhaps cloth or sponge for you to mark upwards, besides, terrible the actual leather while using drenched towel, next allow it to dry organic, don't employ a hair dryer for you to setback dried.If your natural leather stained together with gas, you'll be able to wash on top of the fabric, the acrylic may be cleaned from the cleaning soap, won't clean that by h2o.Dont placed the furniture which often shops the leather-based goods on a sunny day, since it oftentimes leads the buckskin for you to fellow in addition to disappear.High-grade natural leather merchandise provides the preventable tiny scar issues, you should use the particular hands or essential oil in order to desalt your scar problems If buckskin items trapped in the rain by chance, you can easily remove within the declines and set the idea in a very awesome, aired location. Please don't makes use of the hearth for you to dried or even input it on a sunny day.

Comment by stephanieg915 6 days ago

Handbags are considered is the most favored and also critical addition for women of all ages in the world. Add-ons, such as custom made handbags, totes and also purses are crucial to produce the twin reason for functionality and also fashion. These accessories function luminously with both casual along with proper dresses.Designer handbags have emerged to get very popular that all every lady needs to have no less than a couple of these people. Not merely handbags, nevertheless you will discover custom made purses as well as purses made available in the marketplace nowadays. It is just a renowned idea that women"s under no circumstances skimp upon most current trend and as absolutely no girl can instruct off from a full seem without the totally complementing trendy handbag, it can be clear exactly why manufacturers place on a great deal excess weight upon production these designer handbags.There a variety of firms and types which may have inundated this marketplaces using custom made handbags. Designer bags are not only found fashion and classy, in addition, they are of excellent and sturdy, which makes them apparent number of women and girls everywhere accross the planet.While buying custom handbags through marketplace isn"t a sensible choice for most people as a consequence of expensive, there are many different solutions, which will make the item much easier for anyone those who decrease revenue. By using these, they could purchase highly classy designer handbags and appearance their very best in any occasion.Finding handbags online shopping website is the most excellent option, if you wish to obtain a designer handbag that make your complete buddies become envious of you. This handbags websites provide the exact same designer bags you can get in market however with very affordable rates. There"s no reason to be dubious regarding the genuineness involving handbags, as a result of affordable charges.The debate that these kind of handbags internet shopping websites are capable of market these types of developer handbags in good prices than the physical stores is that they find them through the Se location in mass quantity. Consequently, you can purchase most of these handbags in lower prices as compared to the market segments and earn substantial gains. This frustration would be that the most of these kind of handbags is imitations which enable it to problem you actually, nevertheless you"ve for being objective inside your look ups.There a few custom handbags new business organisations which usually advertise replicas and also fake custom made handbags. You should keep away from these and ensure the company you pick stood a good standing available http://www.hermesbeltsbirkinkellybag.co.uk/ in the market. Really the only ways to make this confident is actually checking out a lot of web sites and then making sure the information provided there. The particular customer feedback offered right now there through the potential buyers may also enable you to choose the right websites.The benefit from buying developer handbags on the web is some companies provide you with amenities like free shipping. In this manner, you don"t be concerned with regards to the site associated with stores or accessibility to handbags in the vicinity of your property. There"re furthermore companies which often advertise handbags in bulk on the internet and help you purchase a number of bags on very affordable price ranges used in the future intended for presenting functions.

Comment by stephanieg915 6 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-kensington_86.html

www.canadagoosefemmehomme2016.fr/ou-trouver-canada-goose_232.html

www.canadagoosefemmehomme2016.fr/canada-canada-goose_246.html

www.canadagoosefemmehomme2016.fr/site-officiel-de-canada-goose_435.html

www.canadagoosefemmehomme2016.fr/canada-goose-manteau-femme_178.html

www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

www.canadagoosefemmehomme2016.fr/canada-goose-longue-homme_301.html

www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose-pas-cher_204.html

www.canadagoosefemmehomme2016.fr/trillium-parka-canada-goose_108.html

www.canadagoosefemmehomme2016.fr/canada-goose-montebello-noir_170.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-occasion_150.html

www.canadagoosefemmehomme2016.fr/canada-goose-site-officiel_57.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-d-occasion_466.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-pas-cher_42.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-chateau_400.html

www.canadagoosefemmehomme2016.fr/canada-goose-blanche_295.html

www.canadagoosefemmehomme2016.fr/heatherton-canada-goose_484.html

www.canadagoosefemmehomme2016.fr/canada-goose-chine_250.html

www.canadagoosefemmehomme2016.fr/canada-goose-montebello-prix_254.html

www.canadagoosefemmehomme2016.fr/canada-goose-champs-elysees_360.html

www.canadagoosefemmehomme2016.fr/canada-goose-borden-bomber_196.html

www.canadagoosefemmehomme2016.fr/langford-canada-goose_290.html

www.canadagoosefemmehomme2016.fr/prix-canada-goose_398.html

www.canadagoosefemmehomme2016.fr/canada-goose-grise_80.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-solde_198.html

Comment by sguerra376 4 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-homme-noir_115.html

http://www.canadagoosefemmehomme2016.fr/citadel-parka-canada-goose_62.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-enfant_405.html

http://www.canadagoosefemmehomme2016.fr/skreslet-parka-canada-goose_469.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-montebello-femme_128.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-chilliwack-femme_473.html

http://www.canadagoosefemmehomme2016.fr/boutique-canada-goose_378.html

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose-homme_467.html

http://www.canadagoosefemmehomme2016.fr/montebello-canada-goose_148.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka_61.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-langford_425.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-suisse-prix_276.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-vrai_249.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-femme-pas-chere_357.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-solde_316.html

http://www.canadagoosefemmehomme2016.fr/shelburne-canada-goose_418.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-manteau_438.html

http://www.canadagoosefemmehomme2016.fr/comment-reconnaitre-une-canada-goose_478.html

http://www.canadagoosefemmehomme2016.fr/langford-canada-goose_290.html

http://www.canadagoosefemmehomme2016.fr/blouson-canada-goose-pas-cher_78.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-le-bon-march��_461.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-foxe_91.html

http://www.canadagoosefemmehomme2016.fr/parka-femme-canada-goose_336.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-enfant_83.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fourrure-coyote_244.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-a-montreal_306.html

http://www.canadagoosefemmehomme2016.fr/la-canadienne-canada-goose_294.html

Comment by sguerra376 4 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-new-york-price_202.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-aviateur_449.html

http://www.canadagoosefemmehomme2016.fr/resolute-canada-goose_116.html

http://www.canadagoosefemmehomme2016.fr/montebello-parka-canada-goose_287.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-boutique-paris_167.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-verte_154.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-new-york-prix_159.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-bleu-marine_235.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-victoria_285.html

http://www.canadagoosefemmehomme2016.fr/femmes-canada-goose_281.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-mountaineer_477.html

http://www.canadagoosefemmehomme2016.fr/parajumpers-ou-canada-goose_87.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-site-officiel_57.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-cramoisi_47.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-modele-victoria_409.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-achat_221.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose-canada_416.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-mystique-femme_179.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme-pas-cher_419.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-point-de-vente_371.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme-pas-cher_199.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-homme-noir_115.html

http://www.canadagoosefemmehomme2016.fr/ecusson-canada-goose_168.html

http://www.canadagoosefemmehomme2016.fr/borden-canada-goose_442.html

http://www.canadagoosefemmehomme2016.fr/prix-doudoune-canada-goose_428.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-courte_322.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-violette_121.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-montebello_90.html

http://www.canadagoosefemmehomme2016.fr/tuque-canada-goose_439.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-suisse-prix_276.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose_120.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-homme-chilliwack_233.html

http://www.canadagoosefemmehomme2016.fr/branta-canada-goose_271.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-homme_339.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-montebello-femme_128.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-prix_332.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-stockholm_43.html

http://www.canadagoosefemmehomme2016.fr/adresse-magasin-canada-goose-montreal_297.html

http://www.canadagoosefemmehomme2016.fr/yukon-bomber-canada-goose_147.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-pas-cher_173.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-pas-cher_426.html

http://www.canadagoosefemmehomme2016.fr/blouson-aviateur-canada-goose_299.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme_328.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-entrepot_141.html

http://www.canadagoosefemmehomme2016.fr/montebello-parka-canada-goose_287.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-toronto-outlet_483.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-femme-pas-chere_357.html

Comment by sguerra376 2 days ago

Your point of view

You must be signed in to comment.