tldr/pages/common/zip.md
2016-01-08 09:38:59 +01:00

16 lines
370 B
Markdown

# zip
> Package and compress (archive) files into zip file.
- Package and compress multiple directories and files:
`zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}`
- Add files to an existing zip file:
`zip {{compressed.zip}} {{path/to/file}}`
- Remove unwanted files from an existing zip file:
`zip -d {{compressed.zip}} "{{foo/*.tmp}}"`