I want to copy ‘test’ folder to ‘/expertisenpuru’ filesystem but when i’m using cp test /expertisenpuru command i’m getting the following messages:
cp:omitting directory ‘test’
I got the cp:omitting directory ‘test’ because in any Linux Operating System by default, cp command copies only the direct files, not a subdirectories which are in the directory.
The message cp: omitting directory ‘test’ warns you that the mentioned directory is not copied because this directory is having some subdirectories. Now to copy the directory and subdirectories need to specify the -r (or –recursive) option:
cp -r test /expertisenpuru
Now without any error, The ‘test’ directory copied to ‘/expertisenpuru’ Filesystem 🙂