how to copy all files except folders ubuntu code example Example: cp all except one folder cp -r `ls -A | grep -v "Folder or file name"` destination