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.
Sat Jun 08, 2013
Thank you work perfect for me
Fri May 04, 2012
Thank you -- exactly what I needed to copy a directory of files from disk to a network appliance.
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
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.
Wed Mar 07, 2012
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?
Thu Feb 02, 2012
It works just fine. Love it
Thu Jan 12, 2012
Thanks. It worked like MAGIC!
Wed Dec 14, 2011
Great!! Thanks! :D
Mon Oct 24, 2011
Mon Oct 03, 2011
there's always someone annoying. It works, that's all.
Sun Sep 04, 2011
Thank you. Thank you. Once again
Thu Aug 25, 2011
-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
Wed Aug 24, 2011
It's working ,Thanks buddy
Mon Aug 22, 2011
Doesn't work. It copies some other files too. This is NOT the solution, so be careful.
Title: Cp: Omitting Directory Linux Command Error
Description: Cp: Omitting Directory Linux Command Error
Tags: cp omitting directory linux command error
Info: This Post Has Been Viewed 0 Times Since
Date: Thu Jun 21, 2007
Author hostman Received 54 Replies #2920
Add Your Website
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums