linux copy all files and subdirectories to another directory code example Example: copy all files from a folder to another ubuntu cp -a ./source/. ./dest/