copy a folder with all its contents in linux terminal code example Example: copy all files from a folder to another ubuntu cp -a ./source/. ./dest/