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