May 2013
Beginner to intermediate
384 pages
7h 40m
English
ZIP is a popular compression format used on many platforms. It isn't as commonly used as gzip or bzip2 on Linux platforms, but files from the Internet are often saved in this format. In this recipe we will see how to use zip to perform compression and extraction.
Let's see how to use various options with zip:
$ zip archive_name.zip [SOURCE FILES/DIRS]
For example:
$ zip file.zip file
Here, the file.zip file will be produced.
$ zip -r archive.zip folder1 folder2
In this command, -r is used for specifying recursive.
$ unzip file.zip ...Read now
Unlock full access