0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Macで作成したzipファイルから"__MACOSX/*"を消すコマンド

0
Posted at

Macの Finder「"xxxx"を圧縮」で作成した zipファイルには、 "__MACOSX/*" が含まれている。

  • 次のコマンドで確認できる

    unzip -l zipfile.zip
    

    日本語ファイル名が文字化けする場合は、次のコマンドで見る
    (しかし、"__MACOSX/" は、隠しファイルのため、見えない)

    tar -tf zipfile.zip
    

  • zipファイルから "__MACOSX/*" を削除する場合は、次のコマンドを使う

    zip -d zipfile.zip "__MACOSX/*"
    
    削除したファイルパスが表示される
    deleting: __MACOSX/folder/._filename.ext
    
    表示されないが、
        __MACOSX/folder
        __MACOSX
    も削除される    
    

参考記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?