Ubuntu Terminal: “cp: omitting directory” Copy Error CodeUnit 23 DEC 2010

When attempting to copy a non-empty directory in Ubuntu using the cp command, you will be presented with the following error message:

cp: omitting directory mydirectory

To force the copy cp command to handle the non-empty directory correctly, you need to force the recursive switch using -R

So you should be entering:

cp -R mydirectory targetdirectory

And now you know.

Related Posts:

About Craig Lotter

South African software development manager and senior application developer at Touchwork. Husband to a cupcake baker and father to two little girls. I don't have time for myself any more.