quick copy

cp foo{,bak}
Utilizes shell expansion of {} to give the original filename and a new filename as arguments to `cp`. Can easily be extended to make multiple copies.
Sample Output
$ ls
foo
$ cp foo{,.bak}     # expands to `cp foo foo.bak`
$ ls
foo foo.bak

11
2014-01-22 14:09:42
cp cp

7 Alternatives + Submit Alt

What Others Think

cp -r foo{,bak} prevent form omitting directory
amjad2u · 417 weeks and 4 days ago
where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar midnight mint psychedelic chocolate bar origin mango psilo gummies 0.25g-1g origin strawberry psilo gummies 0.25g-1g penis envy psychedelic chocolate bar psilocybin cube gummies vegan dark chocolate psychedelic chocolate bar microdoses brain capsules 50mg-200mg chill capsules 50mg-200mg clarity capsules 50mg-200mg health capsules 50mg-200mg love capsules 50mg-200mg mood capsules 50mg-200mg pure capsules 50mg-200mg social capsules 30 pack 350mg social capsules 5 pack 350mg buy weed online without medical card marijuana flowers types of concentrates cannabis cartridges buy edibles online legal marijuana shatter cannabis wax marijuana hash buy psychedelic online tinctures for anxiety cannabis seeds bank weed smoker accessories birthday cake kush acdc strain ace killer og strain ak 47 strain alaskan thunder fuck alien kush strain ambrosia kush strain atomik moon rocks cbd 40.57% atomik moon rocks diamond 58.77% banana og strain bc big bud strain birthday cake kush blue cheese strain blue dream og kush blue moonrock kush blue rhino strain blueberry kush strain bruce banner strain cannabis trim cherry pie strain cannatonic strain citrix strain dark star kush durban poison strain eleven roses strain g13 haze strain gelato strain girl scout cookies flavors girl scout cookies online granddaddy purple grape nana strain grape pie strain green crack strain guava kush strain hawaiian skunk jack herer strain mendo breath weed mighty mango mr nice guy weed blue mystic strain northern lights strain northern lights moon rock platinum og kush gas og strain pink og kush platinum hawaiian strain pootie tang strain purple mimosa strain purple white widow strain smart buds sour diesel weed strain sour moonrock strain space monkey tins strawberry banana weed sun rocks super citrus haze strain super silver haze wedding cake strain exotic white widows strain zombie kush strain hybrid weed indica strains sativa strains moon rock for sale cookies sfhaightst alien labs garrison lane gashouse grandiflora insane jokes up lemonade parlay runtz alien labs biskante 3.5g alien labs kryptochronic preroll alien labs kryptochronic smalls 7.0g alien labs melonade x sherbacio livesauce 1.0g alien labs xeno 3.5g alien labs xeno 5 pack prerolls alien labs baklava preroll berry pie cannatique sweet tartz 3.5g cbd flower 8th bag carrot cake cbd flower 8th bag lemon drop cbd flower 8th bag monk fruit cookies cream cookies gary payton 20 3.5g cookies kings road 3.5g cookies london poundcake 3.5g cookies sunset sherbert 3.5g cookies sweet tea 3.5g fiore pomelo anderson 3.5g fiore cherry cream pie 3.5g fiore guava berry 3.5g galactic gas london chello georgia pie juiced suds 3.5g snow man summer lane strain grandi melon hectane strain pineapple piss lemonade project 4516 ya hemi cookies/a> yadada strain insane og strain insane mac eleven strain insane pound cake strain insane rockstar strain lucky charmz baby kiwi chiclet lemonade lemon cookies strain lemonnade lychee lemonnade medellin cookies lemonnade sorbet lemonnade tangeray lions mane strain ooh la la indoor pineapple piss lemonade yellow fruit stripes lemonade jetlato strain mia runtz potato runtz runtz rock devine runt hawaiian runtz live resin runtz og obama runtz white runtz hawaiian runtz moneybagg runtz pink runtz mia runtz potato runtz blue m&m strain cherry cherry lemonade cherry pie og x jack the ripper cosmic cookies strain cutton candy kush mint midnight cannabis oreo cookies rasberry lemonade sunset strain white chocolate trufflez strains wonderbrett black truffle strain dope house trufflez london truffle strain dessert truffle weed pirate truffles weed strain purple truffles strain snow white truffle strain truffle cake strain truffle pie strain beyond blueberry black orchid grapes of warth lemon oz kush melon og orange banana oz kush pineapple og pink picasso strawberry bliss wonderbrett chomp banana pound cake marujuana apple fritter strain banana lato marijuana forbidden fruit strain got bars og by synergy kiwi strawberry strain papaya marijuana strain fruity pebbles marijuana golden state banana peanut butter mochi super og stiiizy mochilato liiit 3.5g
johnson20007 · 21 weeks and 2 days ago
What weather today,What weather today in United States, What weather today in Afghanistan, What weather today in Albania, What weather today in Algeria, What weather today in American Samoa, What weather today in Andorra, What weather today in Angola, What weather today in Anguilla, What weather today in Antigua and Barbuda, What weather today in Argentina, What weather today in Armenia, What weather today in Aruba, What weather today in Ascension Island, What weather today in Australia, What weather today in Austria, What weather today in Azerbaijan, What weather today in Bahamas, What weather today in Bahrain, What weather today in Bangladesh, What weather today in Barbados, What weather today in Belarus, What weather today in Belgium, What weather today in Belize, What weather today in Benin, What weather today in Bermuda, What weather today in Bhutan, What weather today in Bolivia, What weather today in Bonaire, Sint Eustatius, What weather today in Bosnia and Herzegovina, What weather today in Botswana, What weather today in Brazil, What weather today in Brunei, What weather today in Bulgaria, What weather today in Burkina Faso, What weather today in Burundi, What weather today in Cambodia, What weather today in Cameroon, What weather today in Canada, What weather today in Cape Verde, What weather today in Cayman Islands, What weather today in Central African Republic, What weather today in Chad, What weather today in Chile, What weather today in China, What weather today in Colombia, What weather today in Comoros and Mayotte, What weather today in Congo, What weather today in Congo Dem Rep, What weather today in Cook Islands, What weather today in Costa Rica, What weather today in Cote d'Ivoire, What weather today in Croatia, What weather today in Cuba, What weather today in Curaçao, What weather today in Cyprus, What weather today in Czech Republic, What weather today in Denmark, What weather today in Diego Garcia, What weather today in Djibouti, What weather today in Dominica, What weather today in Dominican Republic, What weather today in Ecuador, What weather today in Egypt, What weather today in El Salvador, What weather today in Equatorial Guinea, What weather today in Eritrea, What weather today in Estonia, What weather today in Ethiopia, What weather today in Falkland Islands, What weather today in Faroe Islands, What weather today in Fiji, What weather today in Finland, What weather today in France, What weather today in French Guiana, What weather today in French Polynesia, What weather today in Gabon, What weather today in Gambia, What weather today in Georgia, What weather today in Germany, What weather today in Ghana, What weather today in Gibraltar, What weather today in Greece, What weather today in Greenland, What weather today in Grenada, What weather today in Guadeloupe, What weather today in Guam, What weather today in Guatemala, What weather today in Guinea, What weather today in Guinea Bissau, What weather today in Guyana, What weather today in Haiti, What weather today in Honduras, What weather today in Hong Kong, What weather today in Hungary, What weather today in Iceland, What weather today in India, What weather today in Indonesia, What weather today in Iran, What weather today in Iraq, What weather today in Ireland, What weather today in Israel, What weather today in Italy, What weather today in Jamaica, What weather today in Japan, What weather today in Jordan, What weather today in Kazakhstan, What weather today in Kenya, What weather today in Kiribati, What weather today in Korea, North, What weather today in Korea, South, What weather today in Kuwait, What weather today in Kyrgyzstan, What weather today in Laos, What weather today in Latvia, What weather today in Lebanon, What weather today in Lesotho, What weather today in Liberia, What weather today in Libya, What weather today in Liechtenstein, What weather today in Lithuania, What weather today in Luxembourg, What weather today in Macao, What weather today in Macedonia, What weather today in Madagascar, What weather today in Malawi, What weather today in Malaysia, What weather today in Maldives, What weather today in Mali, What weather today in Malta, What weather today in Marshall Islands, What weather today in Martinique, What weather today in Mauritania, What weather today in Mauritius, What weather today in Mexico, What weather today in Micronesia, What weather today in Moldova, What weather today in Monaco, What weather today in Mongolia, What weather today in Montenegro, What weather today in Montserrat, What weather today in Morocco, What weather today in Mozambique, What weather today in Myanmar, What weather today in Namibia, What weather today in Nauru, What weather today in Nepal, What weather today in Netherlands, What weather today in New Caledonia, What weather today in New Zealand, What weather today in Nicaragua, What weather today in Niger, What weather today in Nigeria, What weather today in Niue, What weather today in Norfolk Island, What weather today in Northern Mariana Islands, What weather today in Norway, What weather today in Oman, What weather today in Pakistan, What weather today in Palau, What weather today in Palestinian Territories, What weather today in Panama, What weather today in Papua New Guinea, What weather today in Paraguay, What weather today in Peru, What weather today in Philippines, What weather today in Poland, What weather today in Portugal, What weather today in Puerto Rico, What weather today in Qatar, What weather today in Reunion, What weather today in Romania, What weather today in Russia, What weather today in Rwanda, What weather today in Saba, What weather today in Saint Barthélemy, What weather today in Saint Helena, What weather today in Saint Kitts and Nevis, What weather today in Saint Lucia, What weather today in Saint Martin, What weather today in Saint Pierre and Miquelon, What weather today in Saint Vincent Grenadines, What weather today in Samoa, What weather today in San Marino, What weather today in Sao Tome and Principe, What weather today in Saudi Arabia, What weather today in Senegal, What weather today in Serbia, What weather today in Seychelles, What weather today in Sierra Leone, What weather today in Singapore, What weather today in Sint Maarten, What weather today in Slovakia, What weather today in Slovenia, What weather today in Solomon Islands, What weather today in Somalia, What weather today in South Africa, What weather today in South Sudan, What weather today in Spain, What weather today in Sri Lanka, What weather today in Sudan, Suriname, What weather today in Swaziland, What weather today in Sweden, What weather today in Switzerland, What weather today in Syria, What weather today in Taiwan, What weather today in Tajikistan, What weather today in Tanzania, What weather today in Thailand, What weather today in Timor-Leste, What weather today in Togo, What weather today in Tokelau, What weather today in Tonga, What weather today in Trinidad and Tobago, What weather today in Tunisia, What weather today in Turkey, What weather today in Turkmenistan, What weather today in Turks and Caicos, What weather today in Tuvalu, What weather today in Uganda, What weather today in Ukraine, What weather today in United Arab Emirates, What weather today in United Kingdom, What weather today in United States, What weather today in Uruguay, What weather today in Uzbekistan, What weather today in Vanuatu, What weather today in Vatican City, What weather today in Venezuela, What weather today in Vietnam, What weather today in Virgin Islands, British, What weather today in Virgin Islands, US, What weather today in Wallis and Futuna, What weather today in Yemen, What weather today in Zambia, What weather today in Zimbabwe
weathers · 12 weeks and 2 days ago
What weather today,What weather today in United States, What weather today in Afghanistan, What weather today in Albania, What weather today in Algeria, What weather today in American Samoa, What weather today in Andorra, What weather today in Angola, What weather today in Anguilla, What weather today in Antigua and Barbuda, What weather today in Argentina, What weather today in Armenia, What weather today in Aruba, What weather today in Ascension Island, What weather today in Australia, What weather today in Austria, What weather today in Azerbaijan, What weather today in Bahamas, What weather today in Bahrain, What weather today in Bangladesh, What weather today in Barbados, What weather today in Belarus, What weather today in Belgium, What weather today in Belize, What weather today in Benin, What weather today in Bermuda, What weather today in Bhutan, What weather today in Bolivia, What weather today in Bonaire, Sint Eustatius, What weather today in Bosnia and Herzegovina, What weather today in Botswana, What weather today in Brazil, What weather today in Brunei, What weather today in Bulgaria, What weather today in Burkina Faso, What weather today in Burundi, What weather today in Cambodia, What weather today in Cameroon, What weather today in Canada, What weather today in Cape Verde, What weather today in Cayman Islands, What weather today in Central African Republic, What weather today in Chad, What weather today in Chile, What weather today in China, What weather today in Colombia, What weather today in Comoros and Mayotte, What weather today in Congo, What weather today in Congo Dem Rep, What weather today in Cook Islands, What weather today in Costa Rica, What weather today in Cote d'Ivoire, What weather today in Croatia, What weather today in Cuba, What weather today in Curaçao, What weather today in Cyprus, What weather today in Czech Republic, What weather today in Denmark, What weather today in Diego Garcia, What weather today in Djibouti, What weather today in Dominica, What weather today in Dominican Republic, What weather today in Ecuador, What weather today in Egypt, What weather today in El Salvador, What weather today in Equatorial Guinea, What weather today in Eritrea, What weather today in Estonia, What weather today in Ethiopia, What weather today in Falkland Islands, What weather today in Faroe Islands, What weather today in Fiji, What weather today in Finland, What weather today in France, What weather today in French Guiana, What weather today in French Polynesia, What weather today in Gabon, What weather today in Gambia, What weather today in Georgia, What weather today in Germany, What weather today in Ghana, What weather today in Gibraltar, What weather today in Greece, What weather today in Greenland, What weather today in Grenada, What weather today in Guadeloupe, What weather today in Guam, What weather today in Guatemala, What weather today in Guinea, What weather today in Guinea Bissau, What weather today in Guyana, What weather today in Haiti, What weather today in Honduras, What weather today in Hong Kong, What weather today in Hungary, What weather today in Iceland, What weather today in India, What weather today in Indonesia, What weather today in Iran, What weather today in Iraq, What weather today in Ireland, What weather today in Israel, What weather today in Italy, What weather today in Jamaica, What weather today in Japan, What weather today in Jordan, What weather today in Kazakhstan, What weather today in Kenya, What weather today in Kiribati, What weather today in Korea, North, What weather today in Korea, South, What weather today in Kuwait, What weather today in Kyrgyzstan, What weather today in Laos, What weather today in Latvia, What weather today in Lebanon, What weather today in Lesotho, What weather today in Liberia, What weather today in Libya, What weather today in Liechtenstein, What weather today in Lithuania, What weather today in Luxembourg, What weather today in Macao, What weather today in Macedonia, What weather today in Madagascar, What weather today in Malawi, What weather today in Malaysia, What weather today in Maldives, What weather today in Mali, What weather today in Malta, What weather today in Marshall Islands, What weather today in Martinique, What weather today in Mauritania, What weather today in Mauritius, What weather today in Mexico, What weather today in Micronesia, What weather today in Moldova, What weather today in Monaco, What weather today in Mongolia, What weather today in Montenegro, What weather today in Montserrat, What weather today in Morocco, What weather today in Mozambique, What weather today in Myanmar, What weather today in Namibia, What weather today in Nauru, What weather today in Nepal, What weather today in Netherlands, What weather today in New Caledonia, What weather today in New Zealand, What weather today in Nicaragua, What weather today in Niger, What weather today in Nigeria, What weather today in Niue, What weather today in Norfolk Island, What weather today in Northern Mariana Islands, What weather today in Norway, What weather today in Oman, What weather today in Pakistan, What weather today in Palau, What weather today in Palestinian Territories, What weather today in Panama, What weather today in Papua New Guinea, What weather today in Paraguay, What weather today in Peru, What weather today in Philippines, What weather today in Poland, What weather today in Portugal, What weather today in Puerto Rico, What weather today in Qatar, What weather today in Reunion, What weather today in Romania, What weather today in Russia, What weather today in Rwanda, What weather today in Saba, What weather today in Saint Barthélemy, What weather today in Saint Helena, What weather today in Saint Kitts and Nevis, What weather today in Saint Lucia, What weather today in Saint Martin, What weather today in Saint Pierre and Miquelon, What weather today in Saint Vincent Grenadines, What weather today in Samoa, What weather today in San Marino, What weather today in Sao Tome and Principe, What weather today in Saudi Arabia, What weather today in Senegal, What weather today in Serbia, What weather today in Seychelles, What weather today in Sierra Leone, What weather today in Singapore, What weather today in Sint Maarten, What weather today in Slovakia, What weather today in Slovenia, What weather today in Solomon Islands, What weather today in Somalia, What weather today in South Africa, What weather today in South Sudan, What weather today in Spain, What weather today in Sri Lanka, What weather today in Sudan, Suriname, What weather today in Swaziland, What weather today in Sweden, What weather today in Switzerland, What weather today in Syria, What weather today in Taiwan, What weather today in Tajikistan, What weather today in Tanzania, What weather today in Thailand, What weather today in Timor-Leste, What weather today in Togo, What weather today in Tokelau, What weather today in Tonga, What weather today in Trinidad and Tobago, What weather today in Tunisia, What weather today in Turkey, What weather today in Turkmenistan, What weather today in Turks and Caicos, What weather today in Tuvalu, What weather today in Uganda, What weather today in Ukraine, What weather today in United Arab Emirates, What weather today in United Kingdom, What weather today in United States, What weather today in Uruguay, What weather today in Uzbekistan, What weather today in Vanuatu, What weather today in Vatican City, What weather today in Venezuela, What weather today in Vietnam, What weather today in Virgin Islands, British, What weather today in Virgin Islands, US, What weather today in Wallis and Futuna, What weather today in Yemen, What weather today in Zambia, What weather today in Zimbabwe
weathers · 12 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. 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.

Share Your Commands



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: