Cp: Omitting Directory Linux Command Error
cp: omitting directory linux command error
cp, omitting, directory, linux, command, error
Cp: Omitting Directory Linux Command Error
Post Description: cp: omitting directory linux command error
POST# 975
Posted On: Fri Feb 29, 2008 12:01 pm
web hosting
Topic: 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.
Share:
BBCODE:
HTML Code:


Mon Sep 10, 2007 11:55 pm
1
Saurabh Gandhi
Reply #1701
Picture 20070911-19731-saurabh-gandhi.jpg
thnx a lot, it means for recursive operation like directory copying we need -r option.
Mon Feb 11, 2008 10:22 pm
2
sandeep
Reply #1702
hey man thanks !! good work.. have been trying & was getting the error.

this worked out...

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload
     
  1. Cp: Cannot Create Symbolic Link
  2. Linux Shell Command - Cp Copy One Or More Files To Another Locatio
  3. Linux Cp Command How To Use Copy Command In Unix Systems
  4. Cp: Omitting Directory Linux Command Error
  5. Cp Command Problems Forcing Overwrite Using Cp Command
  6. Cp: Omitting Directory
  7. Cp: Omitting Directory - How To Fix