When attempting to copy a non-empty directory in Ubuntu using the cp
command, you will be presented with the following error message:
So you should be entering:
cp: omitting directory mydirectoryTo 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 targetdirectoryThis resolve the omitting directory issue!
No comments:
Post a Comment