ZIP is a popular compression format used on many platforms. It isn't as commonly used as
bzip2 on Linux platforms, but files from the Internet are often saved in this format.
In order to archive with ZIP, the following syntax is used:
$ zip archive_name.zip [SOURCE FILES/DIRS]
$ zip file.zip file
file.zip file will be produced.
Archive directories and files recursively as follows:
$ zip -r archive.zip folder1 file2
In this command,
-r is used for specifying recursive.
zip won't remove the source file after archiving.
zip is similar to
tar in that respect, but
zip can compress files where
tar does not. However,
zip adds compression too.