例如有一个hello.tar,或hello.tar.gz 可以使用tar -tvf hello.tar或tar -tvf hello.tar.gz 也就是说tar具有智能分析,只用-t就可以查看压缩包的内容了。