zip
zip is a Linux command in the Archives & Compression category, rated intermediate difficulty. Creates compressed ZIP archives (cross-platform format). The syntax is zip [options] archive [files]. Key options and parameters: archive, files — zip filename, files to add. It returns zIP archive file. A practical example: zip archive.zip file1.txt file2.txt zip -r archive.zip dir/ # Recursive (include directory) zip -e secure.zip file # Encrypt with password A close relative is tar, which creates and extracts tar archives. The standard Unix archiving tool. A close relative is gzip, which compresses files using Lempel-Ziv coding. Produces .gz files. A close relative is gunzip, which decompresses .gz files created by gzip. More about this category: Linux archive commands — tar, gzip, zip, unzip, and more. Compress and extract files and archives. Related Archives & Compression commands: tar, gzip, gunzip, unzip, xz, zcat, bunzip2, bzip2.