How to resolve cp: omitting directory issue in Ubuntu/Linux?

Today, I was faced with the cp: omitting directory issue that I can’t able to copy my folder from source to destination. After that, I realized that copy command can copy only the direct files and not the sub-directories and files in the folder too.

1. Copy all the sub-directories and files under folder, you have to use the following recursive (-r) command.

$ sudo cp -r <my-source-folder-path> <my-destination-folder-path>

That’s it. I hope this will help. 🙂
Photo: http://www.pngall.com

Leave a Reply

Your email address will not be published. Required fields are marked *