Linux Error - Omitting Directory File Creating Copying Moving Removing

RegisterLogin
Linux Error - Omitting Directory File Creating Copying Moving Removing
Post Description: Linux Error - Omitting Directory File Creating Copying Moving Removing
Tags: Linux, Error, -, Omitting, Directory, File, Creating, Copying, Moving, Removing
This Post Was Posted On Apr 24, 2008 By hostman #924
I get this error:
Code/Command:
cp: omitting directory `/var/www/html/'



When I send this command:
Code/Command:
cp /var/www/html/ /var/web/html/



I've also seen this error whenever i do:

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



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



removing, remove, raname, delete, deleting, creating, create a file or directory

PLEASE HELP ME, I AM LOST, I NEED TO KNOW WHAT TO DO ASAP!
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
huangfeng080
#1186 1
if you copy a directory( not file) add "-r"
just like this:
cp -r oldfile newfile
Sep 20, 2008 Reply Report abuse
Web Hosting Support
#1185 2
To overcome this error, you need to give it the -r option.

For your command to work, your command should look like this:

Code/Command:
cp -r /var/www/html/ /var/web/html/
Apr 24, 2008 Reply Report abuse
©2011 Webune Forums - Mon Dec 19, 2011 9:00 am
Powered by: Webune Forums V3