Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「右クリック->圧縮」を実行するときにMacGUIから設定されるのと同じオプションを使用してdirを圧縮する必要があるシェルスクリプトを作成しています。私が理解していることから、dittoはその仕事に適したツールですが、「-c」以外にどのフラグを渡す必要がありますか?生の「-c」と「-c-k」を試しましたが、どちらも右クリックで異なる結果が得られます。
「マンディット」によると、
コマンド:
ditto -c -k --sequesterRsrc --keepParent src_directory archive.zip
Finderの圧縮機能と同様にPKZipアーカイブを作成します。