check tar.gz file contents linux without extracting code example Example: list tar contents without extracting tar -tvf archive.tar