Cp: Omitting Directory Linux Command Error

RegisterLogin
Cp: Omitting Directory Linux Command Error
Post Description: Cp: Omitting Directory Linux Command Error
Tags: Cp:, Omitting, Directory, Linux, Command, Error
This Post Was Posted On Feb 29, 2008 By web hosting #2141
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.
sandeep
#2218 1
hey man thanks !! good work.. have been trying & was getting the error.

this worked out...
Feb 11, 2008 Reply Report abuse
Saurabh Gandhi
#2217 2
20070911-19731-saurabh-gandhi.jpg
thnx a lot, it means for recursive operation like directory copying we need -r option.
Sep 10, 2007 Reply Report abuse
©2012 Webune Forums - Fri Dec 14, 2012 12:17 am
Powered by: Webune Forums V3