1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 05:17:58 +01:00
tldr/pages/common/zip.md
2015-12-29 00:29:16 +01:00

366 B

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}}"