tar a folder mac code example Example: tar folder macos tar czf archive_folder_name.tar.gz folder_to_copy