find extension of file and remove linux command code example Example: exclude certain extension from zip linux zip -r archive.zip directory -x "*.jpg"