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