linux tool to compress files in tar.gz code example Example: how to zip with tar command tar -czvf name-of-archive.tar.gz /path/to/directory-or-file