Wallpapers Forums Login

Cp: Omitting Directory Linux Command Error

ok, i've done this so many times, and i just forgot how to overcome this error.

so i am writing this little how to just incase you are also having this problem.

if you are getting this error: cp: omitting directory

this is what you need to do:

cp -r orginal_file new_file


so the trick here is to add the -r escape on your command and it shouldn't give you an error anymore

hope this helps.

if you ever need web hosting, visit www.webune.com they have excellent service.
Anne Fri May 04, 2012
Thank you -- exactly what I needed to copy a directory of files from disk to a network appliance.
banzai Wed Apr 18, 2012
This is rather useless, since its a partial solution (not an answer). In the wonder land this is usually caused by trying to copy to multiple targets such as when shell expansion is used or output from other commands
Daniel Tue Apr 03, 2012
Thank you a lot :D I don't use this command as often and had completely forgot that you need to use -r for domains.
nawraj Wed Mar 07, 2012
thank you............
Housefly Mon Mar 05, 2012
It works becuase it fails if you do not specify any specific or wildcard files. -r makes it recursive - meaning it will include subfiles/folder Does it make sense?
Cherodney Thu Feb 02, 2012
02-1580-128-1796899878919-1132407908-2085729-4325112-n.jpg
It works just fine. Love it
James Thu Jan 12, 2012
Thanks. It worked like MAGIC!
Ivanof Wed Dec 14, 2011
Great!! Thanks! :D
MyNameIs1337 Mon Oct 24, 2011
yep works!
Cesar Mon Oct 03, 2011
there's always someone annoying. It works, that's all.
Captnbob Sun Sep 04, 2011
Thank you. Thank you. Once again
thanks.
shbk Thu Aug 25, 2011
man cp
-R, -r, --recursive
copy directories recursively
i understand it so:

you can't copy directory without files which lie inside , and cp looks which files are inside only with -R option
chandrashekar Wed Aug 24, 2011
It's working ,Thanks buddy
Dude Mon Aug 22, 2011
Doesn't work. It copies some other files too. This is NOT the solution, so be careful.
prohor Sun Aug 14, 2011
I want to know how it works and why the error occur...

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5