magento web developer


Manchester based Magento and Zend Framework certified developer.

Copy whilst preserving directory structure

$ cp --parents /a/directory/structure/file.txt /target/folder

This will copy file.txt from the folder you are in, and place it in the same folder structure, in the target folder.  The end result will look like this:

/target/folder/a/directory/structure/file.txt