Linux Shell Error: "omitting Directory" File Copy Move Create Remove
linux shell error: "omitting directory" file copy move create remove
linux, shell, error, omitting, directory, file, copy, move, create, remove
Linux Shell Error: "omitting Directory" File Copy Move Create Remove
Post Description: linux shell error: "omitting directory" file copy move create remove
POST# 185
Posted On: Fri Feb 29, 2008 12:01 pm
braker
Topic: Linux Shell Error: "omitting Directory" File Copy Move Create Remove
I am getting this error whenver I send a command to copy a directory. This is the command I am using:


     Code:
cp /var/www/html/ /var/web/html/


Thi is the error I get

     Code:
cp: omitting directory `/var/www/html/'


What I am doing wrong

I've also seen this error whenever i do:


     Code:
mv /var/www/html/ /var/web/html/



     Code:
rm /var/www/html/ /var/web/html/


Tue Aug 29, 2006 4:34 am
1
braker
Reply #675
To fix this error, you need to give it the -r option (argument).

In order for your command to work, it should look like this:


     Code:
cp -r /var/www/html/ /var/web/html/


To DELETE the whole and complete directory without a prompt, do this command: (be careful, there's no going back once you delete it)


     Code:
rm -fc directory_name

* directory_name is whatever directory you want to delete.
Tue Apr 03, 2007 11:39 am
2
Fidelis
Reply #676
Thank you so much that was a q uick tip that saved me time.
Fri Apr 06, 2007 2:33 pm
3
A.J.
Reply #677
Thank you very much for this,
it took me ages to find this exacly command!
Sun Jun 24, 2007 4:51 am
4
jianchao
Reply #678
good answer
Wed Sep 12, 2007 10:51 pm
5
Mohamed Thalib
Reply #679
i helped mee tooo thanks a lot..
Mon Oct 15, 2007 11:02 pm
6
Sunil Kumar
Reply #680
helped me too
thanks!!
--
goodtoknowit.blogspot
Wed Oct 17, 2007 7:01 am
7
Chandra
Reply #681
this is very helpful information me too.
Thu Nov 29, 2007 12:04 am
8
Alexa
Reply #682
this is great. it worked like a charm.
Sat Dec 01, 2007 8:49 pm
9
Jayson
Reply #683
heck yes!!! thank you very much. this is such a relife that ic an do this
Fri Feb 15, 2008 5:34 am
10
rakshas
Reply #684
thank you very much!

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