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