tar gz list of files code example
Example 1: tar.gz files
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: list content of tar.gz
tar -tf filename.tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -tf filename.tar.gz