how to view what's inside a tar.gz file code example Example: tar.gz files tar -czvf name-of-archive.tar.gz /path/to/directory-or-file