zipファイルの内容を一覧表示する方法

zipファイルの内容を一覧表示する方法

非常に大きなzipファイルを作成し、デフォルトのzipを3GBチャンクに分割しました。私はコマンドを使用しました

zip test.zip --out new_test.zip -s 3300m

その結果、3つのファイルが作成されました。

test.zip
test.01
test.02

mvその後、コマンドを使用します。。圧縮また、他の2つのファイルの終わりにもあります。

今3つすべてがありました。。圧縮ファイルですが、ファイルのリダイレクトのためにzipファイルの内容を一覧表示しようとすると、次のエラーが発生します。

unzip -l test.zip > test.txt
warning [bulk_content_import1.zip]:  zipfile claims to be last disk of a multi-part archive;
  attempting to process anyway, assuming all parts have been concatenated
  together in order.  Expect "errors" and warnings...true multi-part support
  doesn't exist yet (coming soon)

誰でもこの問題を解決するのに役立ちますか?以前はコンテンツの表示に問題はありませんでしたが、unzip -l test.zip | moreすべてのファイル名を別々のファイル名にリダイレクトしたいと思います。。 txt文書。

End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of test1.zip or
        test1.zip.zip, and cannot find test1.zip.ZIP, period.

ベストアンサー1

思ったように動作しません。 3つのzipファイルの代わりにマルチパートzipを作成しました。

zipファイルの整合性を損なうことなく.01セクションと.02セクションの名前をzipに変更することはできません。さらに、.01 セクションと .02 セクションには、最初の最初の .zip ファイルの初期ヘッダー コンテンツがありません。

したがって、3つのファイルマルチパートzipのすべてのコンテンツを一覧表示するには、名前をそのままにする必要があります。

TLDR あなたは何かを発明することができず、それが魔法のようにあなたのように動作すると期待できません考える彼らは働きます。

より小さなzipファイルが必要な場合は、最も簡単な方法は大きなファイルを解凍してから、小さなzipファイルとしてファイルを配布することです。

おすすめ記事