2014-01-28 07:47:32 +00:00
|
|
|
# zip
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Package and compress (archive) files into zip file.
|
2014-01-28 07:47:32 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Package and compress multiple directories and files:
|
2014-01-28 07:47:32 +00:00
|
|
|
|
2014-01-28 12:08:30 +00:00
|
|
|
`zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}`
|
2015-12-28 16:51:04 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Add files to an existing zip file:
|
2015-12-28 16:51:04 +00:00
|
|
|
|
|
|
|
`zip {{compressed.zip}} {{path/to/file}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Remove unwanted files from an existing zip file:
|
2015-12-28 16:51:04 +00:00
|
|
|
|
|
|
|
`zip -d {{compressed.zip}} "{{foo/*.tmp}}"`
|