Thursday, July 19, 2012

Ubuntu Terminal: “cp: omitting directory” Copy Error

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
This resolve the omitting directory issue!