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