cp: omitting directory linux command error
cp: omitting directory linux command error
Post Description: cp omitting directory linux command error Linux
Post Tags:
This Post Has Been Viewed 12684 Times Since Thu Jun 21, 2007 4:31 pm Author
hostman with 24 replies
cp: omitting directory linux command error
Advertise On This Page
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.
Links Related to : cp: omitting directory linux command error
Comments and replies About cp: omitting directory linux command error
::
1 ::
Reply #19731 Reply By
Saurabh On Mon Sep 10, 2007 11:55 pm
Saurabh:
thnx a lot, it means for recursive operation like directory copying we need -r option.
::
2 ::
Reply #40823 Reply By
sandeep On Mon Feb 11, 2008 10:22 pm
sandeep:
hey man thanks !! good work.. have been trying & was getting the error.
this worked out...
::
3 ::
Reply #49710 Reply By
ragnar On Fri Apr 11, 2008 11:06 pm
ragnar:
thanks for your tip. :)
::
4 ::
Reply #53591 Reply By
Salah On Tue May 13, 2008 1:36 am
Salah:
working like a charm
::
5 ::
Reply #69028 Reply By
projekt On Mon Sep 01, 2008 4:35 pm
projekt:
this was a google find of the year, thanks man.
::
6 ::
Reply #69492 Reply By
Nitesh On Fri Sep 05, 2008 11:52 am
Nitesh:
thanks this helped me
::
7 ::
Reply #69930 Reply By
scutch On Tue Sep 09, 2008 6:18 am
scutch:
hey! , yes this has worked for me as well. i wonder what it is about recursive that is so much needed with using cp? either way i will not this in my memory. cheers!
::
8 ::
Reply #74096 Reply By
MeLkOrAzO On Sun Oct 05, 2008 5:32 pm
MeLkOrAzO:
excelente aporte!!.
muchas gracias.
::
9 ::
Reply #84929 Reply By
jason On Fri Dec 05, 2008 3:39 pm
::
10 ::
Reply #85800 Reply By
Levi On Thu Dec 11, 2008 1:46 pm
::
11 ::
Reply #86672 Reply By
M On Thu Dec 18, 2008 12:19 pm
M:
awesome, many thanks for posting this. helped at least one person :)
::
12 ::
Reply #87153 Reply By
sandeep On Mon Dec 22, 2008 4:49 am
sandeep:
thank you very much
::
13 ::
Reply #90136 Reply By
Mohd On Thu Jan 15, 2009 10:49 pm
Mohd:
cp: omitting directory i am not able to copy the files
::
14 ::
Reply #93556 Reply By
charger On Wed Feb 11, 2009 2:52 am
::
15 ::
Reply #93636 Reply By
Joe On Wed Feb 11, 2009 8:46 pm
::
16 ::
Reply #95165 Reply By
devika On Thu Feb 26, 2009 10:26 am
devika:
the -r option removes the omitting directory error ...is there any option to copy large directories...kernel source,etc..
thanks for ur concern.
::
17 ::
Reply #97794 Reply By
Piyush On Sat Mar 21, 2009 2:50 am
Piyush:
hi, i was having the same error. thank you very much for providing me a solution.
::
18 ::
Reply #99212 Reply By
Keith On Fri Apr 03, 2009 3:35 pm
Keith:
thanks! seems like such a simple thing but this was faster than the man page!
keith
::
19 ::
Reply #99827 Reply By
ravi On Thu Apr 09, 2009 2:18 am
ravi:
i want copy the data from directory to directory how can i do? i type #cp -r /mnt/server /var/ftp/pub it is saying cp : omiting directory. what can i do. please tell me how to copy the data directory to directory.
::
20 ::
Reply #111298 Reply By
Bigsoda On Sat Aug 01, 2009 8:02 am
Bigsoda:
many thanks for sharing. gby
::
21 ::
Reply #111669 Reply By
candtalan On Wed Aug 05, 2009 2:11 am
candtalan:
thanks!!
this is really useful
::
22 ::
Reply #127484 Reply By
k_neo64 On Sat Feb 06, 2010 12:07 am
k_neo64:
Thank's for this post.. I've help my backup data...
::
23 ::
Reply #129135 Reply By
thedude On Mon Mar 01, 2010 2:21 pm
thedude:
Dude, seriously, this is the worst answer ever. What about some explanation of WHY the cp command failed, and WHY the -r option fixes it? If youre going to help noobs at least teach them something
::
24 ::
Reply #129843 Reply By
Gnosishunter On Sat Mar 13, 2010 12:11 pm
Gnosishunter:
I still had a little trouble beyond that-
nothing a little superuser won't fix.
If you still have issues, throw sudo in in front of it like so-
sudo cp -r /directory/file.ext /destination