cp omitting directory
If you see the message “cp omitting directory” after you try to copy a file or directory it means that it can’t copy the directory because you didn’t specify “-r”.
Fix - To copy a directory just use this command:
cp -r mydir1 mydir2
It won’t work if you don’t include the “-r” like this:
cp mydir1 mydir2
The reason for this is that the cp command is not recursive by default and will not copy directories or their contents.