codeaprendiz.github.io

DevOps Essentials

View on GitHub

zip

NAME

zip - package and compress (archive) files

SYNOPSIS

zip [-aABcdDeEfFghjklLmoqrRSTuvVwXyz!@$] [–longoption …] [-b path] [-n suffixes] [-t date] [-tt date] [zipfile [file …]] [-xi list]

DESCRIPTION

zip is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows 9x/NT/XP, Minix, Atari, Macintosh, Amiga, and Acorn RISC OS. It is analogous to a combination of the Unix commands tar(1) and compress(1) and is compatible with PKZIP (Phil Katz’s ZIP for MSDOS systems).

EXAMPLES

Command format. The basic command format is

zip options archive inpath inpath …

zip -r foo.zip foo
or 
 zip -r foo foo
zip -d xx-xx-xx.war WEB-INF/lib/xx-xx-xx-5.4.2.0.jar