how to zip a whole folder in termina code example Example: compress file in terminal tar -czvf name-of-archive.tar.gz /path/to/directory-or-file