Terminal command to zip up files excluding unwanted Icon and DS_Store files zip my_zip_file.zip -r dir_to_zip -x "*Icon*" "*.DS_Store"