Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the unzip decompression command

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Xiaobian to share with you the use of unzip decompression command, I believe most people still do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

How to use the unzip decompression command: [unzip test.zip], which means to decompress the compressed file test.zip to the current directory. The unzip command is used to unzip the [.zip] package compressed by the zip command.

The unzip command

The unzip command is used to unzip the ".zip" archive compressed by the zip command.

syntax

unzip(option)(parameter)

option

-c Display the decompressed results on the screen and make appropriate conversions to the characters;

-f Update existing documentation;

-l Displays files contained within compressed files;

-p is similar to the-c parameter and displays the decompressed result on the screen, but does not perform any conversion;

-t Check whether the compressed file is correct;

-u is similar to the-f parameter, but in addition to updating existing files, it also unpacks other files in the compressed file into the directory;

-v Display detailed information when executed;

-z Display only the comment text of compressed files;

-a performs the necessary character conversion on text files;

-b Do not perform character conversion on text files;

-C File names in compressed files are case-sensitive;

-j does not process the directory path in the compressed file;

-L Change all file names in compressed files to lowercase;

-M sends the output to the more program for processing;

-n Do not overwrite original files when decompressing;

-o No need to ask the user first, unzip will overwrite the original file after execution;

-P Use zip password option;

-q is executed without displaying any information;

-s converts white space characters in filenames to baseline characters;

-V retains VMS file version information;

-X When decompressing, save the original UID/GID of the file at the same time;

-d Specifies the directory where the file will be stored after decompression;

-x Specifies which files in the.zip archive should not be processed;

-Z unzip-Z is equivalent to executing the zipinfo instruction.

Examples:

unzip test.zip -> extract test.zip to the current file unzip -n test.zip -d /tmp -> Unzip test.zip to/tmp and do not overwrite the existing file unzip -v test.zip -> View test.zip contents without unzipping unzip -o test.zip -d tmp/ -> Unzip test.zip to/tmp directory, and overwrite the existing file above is the use of unzip decompression command all the content, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report