Compression and Archiving Application Settings

Settings

Compression and Archiving Application Settings

Introduction

Here are some of my compression and archiving (packing, zipping) application settings. See also: Useful Compression and Archiving Applications, Download / File Transfer Application Settings, File Integrity Application Settings, Network Device Settings, Programs, Software.

WinZip (OS X 10.12)

Problem

WinZip does not like non-ASCII characters in the folder where the zip file is. Put the zip file to another folder with a simple name.

zip (OS X 10.8)

Simple example: zip all files on current directory

zip name1.zip -v -r *

-r: save recursively files

-v: verbose mode

Another example: zip files on a certain directory

zip -v -j -s 700m name2.zip -r directory1 -i \*.c -x \*.o -z

-i: only include the specified files (.c files in the current and its subdirectories in the above example)

-j: store only files, not directory locations

-r: save recursively files inside directory1

-s: split archive in multiple files (700 megabyte files in the above example)

-v: verbose mode

-x: exclude specified files (.o files in the above example)

-z: prompt for a comment for the entire zip file

From Mac to Windows: include files

zip -v -j name.zip *.java

From Mac to Windows: remove __MACOSX directory from zip file

zip -d Archive.zip __MACOSX/\*

Comment: if on Finder you selected multiple files, right mouse clicked and selected the "Compress * Items", OS X includes a __MACOSX directory in the zip file.

Last modified: March 7th, 2018

Author: Tomi Häsä (tomi.hasa@gmail.com)

URL: http://sites.google.com/site/tomihasa/compression-archiving-settings