how to use tar.gz in command line code example Example: files tar.gz tar -czvf name-of-archive.tar.gz /path/to/directory-or-file