The linux unzip command can decompress a zip file in windows. Unzip command syntax: unzippered multiple compressed file name. The options of "-x file list" are used to decompress the file, but do not include the specified file. -V query...
The linux unzip command can decompress a zip file in windows.
Unzip command
Syntax: unzip [option] Compressed file name. zip
The meanings of each option are as follows:
-X file list: decompress the file, but does not include the specified file.
-V.
-T whether the test file is damaged, but the pressure is not solved.
-D Directory: decompress the compressed file to the specified directory.
-Z only displays the annotation of the compressed file.
-N does not overwrite existing files.
-O overwrites existing files and does not require user confirmation.
-J. do not recreate the directory structure of the document and decompress all the files to the same directory.
Example 1: extract text.zip from the current directory.
$ Unzip text.zip
Example 2: decompress the compressed file text.zip under the specified directory/tmp. if the same file already exists, the unzip command must not overwrite the original file.
$ Unzip-n text.zip-d/tmp
Example 3: view the Directory of the compressed file.
$ Unzip-v text.zip
Zgrep command
The function of this command is to find a matching regular expression in a compressed file. the usage is the same as that of the grep command, except that the object operated is a compressed file. You can use the zgrep command to check whether a certain sentence exists in a compressed file.