unzip (linux command) Function description: Unzip zip file Syntax: unzip [-cflptuvz][-agCjLMnoqsVX][-P <password>][zip file][file][-d <directory> ][-x <file>] or unzip [-Z] Note: unzip is the decompressor for zip files.
[-cflptuvz] Interpretation -c Display the decompressed results on the screen and make appropriate conversions of the characters. -f Update existing files. -l Displays the files contained in the compressed file. -p Similar to the -c parameter, the decompressed result is displayed on the screen, but no conversion is performed. -t Checks if the compressed file is correct. -u is similar to the -f parameter, but in addition to updating existing files, other files in the compressed file are also extracted into the directory. -v Displays detailed information when executed. -z Displays only the comment text of the compressed file.
[-agCjLMnoqsVX] Interpretation: -a Perform the necessary character conversion for text files. -b Do not perform character conversion on text files. The file names in the -C compressed file are case sensitive. -j Does not process the original directory path in the compressed file. -L Changes all file names in the compressed file to lowercase. -M Sends the output to the more program. -n Do not overwrite the original file when decompressing. -o No need to ask the user first, unzip the original file after execution. -q does not display any information when executed. -s Converts whitespace characters in file names to bottom-line characters. -V Retains file version information for VMS. -X Restores the original UID/GID of the file at the same time.
-P<Password> Use the zip password option.
[zip file] Specify the zip file.
[File] Specify which files in the zip archive to process.
-d<directory> Specifies the directory to store after the file is extracted. -x<file> Specifies which files in the .zip archive are not processed. -Z unzip -Z is equivalent to executing the zipinfo command.
Example:
The unzip command that comes with linux can extract the compressed file in zip format under windows.
unzip command
Syntax: unzip [options] Compressed file name.zip
The meaning of each option is:
-x file list decompression File, but does not include the specified file.
-v View the compressed file directory, but do not extract it.
-t Test the file for damage, but not decompress it.
-d directory Unzip the compressed file to the specified directory.
-z Only displays comments for compressed files.
-n Does not overwrite existing files.
-o Overwrites existing files and does not require user confirmation.
-j Do not rebuild the directory structure of the document, extract all the files to the same directory.
Example 1: Unzip the compressed file text.zip in the current directory.
$ unzip text.zip
Example 2: Decompress the compressed file text.zip in the specified directory /tmp. If the same file exists, ask the unzip command to not overwrite the original one. file.
$ unzip -n text.zip -d /tmp
Example 3: View the compressed file directory, but do not extract it.
$ unzip -v text.zip
zgrep Command
The function of this command is to find matching regular expressions in the compressed file. The usage is the same as the grep command. However, the object of the operation is a compressed file. If the user wants to see if there is a sentence in a compressed file, the zgrep command can be used.
in CentOS Introduction to lvs LVS has a similar point to other application-layer or IP-based load b
After reinstalling Win7, I have never tried to install Linux again, occasionally playing, an
The following folder on the desktop is shared as a shared folder to the Linux system in the virtual
Command Introduction Shutdown, poweroff, reboot, halt, init can be shut down, approximate
Sort|uniq| Cut| Wc (my first markdown note)
How to view logs in Linux system (common commands)
The use of fork function in linux
VNC remote connection Linux system settings
Centos7 modify SSH port number
One experience to solve grub boot error
Real-time automatic backup of switch configuration files every day with Linux server
Windows Mode 7 XP Mode Download, Installation, Setup Raiders
Linux common commands (including vi/gdb) operation skills
After WinXP enters the system, the black screen processing method (more detailed)
The file printed by Win7 printer is blank and streaked.
Windows 2 cannot log out of the solution
How to create a local account with Win10 installation?
Where is the Win8/Win8.1 logout option?