You can use -r option to copy files recursively. But if we need to copy a single file with the full directory structure. Use cp command with –parents option to use full source file name under the directory and create a similar directory structure on the destination. Now list the file on the destination directory. You can see that the same directory structure is created in the destination directory.