files tar.gz code example Example: files tar.gz tar -czvf name-of-archive.tar.gz /path/to/directory-or-file