列出存档内容

列举内容有一个例子:

tar -tvf archive.tar

选项 -t 用于列表。要列出 tar.gz 存档的内容,你必须再使用 -z 选项:

tar -tzvf archive.tar.gz