Add files/directories to a specific archive

zip

  • Package and compress (archive) files into zip file.
    See also: `unzip`.
    More information: <https://manned.org/zip>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

zip -r {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

click the source code to copy install zip on any operating system with command-not-found.com