cp: omitting directory ‘folder-name’

You want to copy some files / folders into a different location in Linux operating system environment. While copying, you are getting below message.

cp /Daani/* /Backup/
cp: omitting directory ‘Daaris’
cp: omitting directory ‘Daem’
cp: omitting directory ‘Dhiya’

Above message tells that the folders / files are not been copied. The cp command will only copy direct folder / file without the sub-directories.

If you want to copy with includes of the sub-directories, please add -r or -R (recursive) into the command as below,

cp -r /Daani/* /Backup/

You May Also Like

Leave a Reply?