linux command line cp exlude directory code example Example: cp all except one folder cp -r `ls -A | grep -v "Folder or file name"` destination