linux copy files and directory structure code example Example: cp with folder structure cp --parents src/prog.js images/icon.jpg /tmp/package