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