Linux Shell Error: "omitting Directory" File Copy Move Create Remove
Linux Shell Error: "omitting Directory" File Copy Move Create Remove
Post Description:
Post Tags: linux, shell, error, omitting, directory, file, copy, move, create, remove
This Post Has Been Viewed 11286 Times Since Tue Aug 29, 2006 4:26 am Posted By braker with 11 replies
| 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/
Leave Your Comments [ dejar commentarios ]
Comments and replies About Linux Shell Error: "omitting Directory" File Copy Move Create Remove
:: 1 :: #101 - Reply By braker On Tue Aug 29, 2006 4:34 am
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.
:: 2 :: #1232 - Reply By Fidelis On Tue Apr 03, 2007 11:39 am
Thank you so much that was a q uick tip that saved me time.
:: 3 :: #1306 - Reply By A.J. On Fri Apr 06, 2007 2:33 pm
Thank you very much for this,
it took me ages to find this exacly command!
:: 4 :: #7974 - Reply By jianchao On Sun Jun 24, 2007 4:51 am
good answer
:: 5 :: #19976 - Reply By Mohamed Thalib On Wed Sep 12, 2007 10:51 pm
i helped mee tooo thanks a lot..
:: 6 :: #24438 - Reply By Sunil Kumar On Mon Oct 15, 2007 11:02 pm
helped me too
thanks!!
--
goodtoknowit.blogspot
:: 7 :: #24570 - Reply By Chandra On Wed Oct 17, 2007 7:01 am
this is very helpful information me too.
:: 8 :: #29657 - Reply By Alexa On Thu Nov 29, 2007 12:04 am
this is great. it worked like a charm.
:: 9 :: #30114 - Reply By Jayson On Sat Dec 01, 2007 8:49 pm
heck yes!!! thank you very much. this is such a relife that ic an do this
:: 10 :: #41295 - Reply By rakshas On Fri Feb 15, 2008 5:34 am
thank you very much!
:: 11 :: #47778 - Reply By majeti karthik On Sun Mar 30, 2008 2:10 am
thanks .. it helped me too ..
small but immense potential to irritate :)