LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   can move but not copy (https://www.linuxquestions.org/questions/linux-general-1/can-move-but-not-copy-4933/)

matt 07-31-2001 09:17 PM

can move but not copy
 
Howdy -

I cannot seem to copy a directory I have.

For example, I have a directory of mp3's in my home folder. If I'm working in my home folder, I see something like this when I list:

folderA folderB

Then I issue the command: cp folderA folderB

Then I get:

"cp: omitting directory 'folderA'"

However, this same line works with the 'mv' command.

Ideas?

(using RH7.1)

isajera 08-01-2001 01:33 AM

this isn't really an error - this just means that there's an empty directory that you're trying to copy, and the cp program essentially ignores it. mv doesn't bother to check whether or not a directory is empty when it moves it, so you don't get the same message.

mcleodnine 08-01-2001 02:40 AM

Needs to be recursive?
Code:

cp -r folderA folderB

matt 08-01-2001 07:08 AM

Yes, it needed to be recursive.

Thanks! That was driving me nuts last night.

)M.


All times are GMT -5. The time now is 02:25 PM.