The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

unzip - Extract Files from ZIP Archives 




The unzip command is used to extract files from ZIP archives. It is specifically designed for working with files compressed in the ZIP format.

The basic syntax for the unzip command is as follows:
unzip [OPTIONS] [FILE]

Here,"FILE" represents the name of the ZIP archive you want to extract files from. If not specified, it will use standard input.

Some common options for the unzip command include:


For example:
$ unzip file.zip ←Extracts "file.zip" into the current working directory
$ unzip -p file.zip | head > file ←Extracts only the first 10 lines from "file.zip" and saves them to a file

You can find more examples and detailed explanations in the provided link.