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:
$ 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 |