Cp: Omitting Directory Linux Command Error



Cp: Omitting Directory Linux Command Error
 (328) Domains for just $1.99 1751586
Cp: Omitting Directory Linux Command Error
Post Description:
Post Tags: cp, omitting, directory, linux, command, error
This Post Has Been Viewed 4320 Times Since Thu Jun 21, 2007 4:31 pm Posted By hostman with 4 replies
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.

Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About Cp: Omitting Directory Linux Command Error




:: 1 :: #19731 - Reply By Saurabh Gandhi On Mon Sep 10, 2007 11:55 pm
Reply Cp: Omitting Directory Linux Command Error
thnx a lot, it means for recursive operation like directory copying we need -r option.
:: 2 :: #40823 - Reply By sandeep On Mon Feb 11, 2008 10:22 pm
hey man thanks !! good work.. have been trying & was getting the error.

this worked out...
:: 3 :: #49710 - Reply By ragnar On Fri Apr 11, 2008 11:06 pm
thanks for your tip. :)
:: 4 :: #53591 - Reply By Salah On Tue May 13, 2008 1:36 am
working like a charm