Zip包的命令`unzip –l myzipfile.zip`。
Tar.gz包的命令`tar –tzf mypackage.tar.gz`。
参考资料
=============
Read the contents of a zipped file without extraction?
https://superuser.com/questions/462788/read-the-contents-of-a-zipped-file-without-extraction
How can I view the contents of tar.gz file without extracting from the command-line?
标签:解压,查看,tar,gz,without,contents,file,压缩包 From: https://www.cnblogs.com/awpatp/p/18374411