1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/zip.md

16 lines
366 B
Markdown
Raw Normal View History

2014-01-28 15:47:32 +08:00
# zip
> Package and compress (archive) files into zip file
2014-01-28 15:47:32 +08:00
2015-12-28 17:51:04 +01:00
- package and compress multiple directories and files
2014-01-28 15:47:32 +08:00
`zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}`
2015-12-28 17:51:04 +01:00
- 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}}"`