列出存檔內容

列舉內容有一個例子:

tar -tvf archive.tar

選項 -t 用於列表。要列出 tar.gz 存檔的內容,你必須再使用 -z 選項:

tar -tzvf archive.tar.gz