In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use the unzip command of Linux". In daily operation, I believe many people have doubts about how to use the unzip command of Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to use the unzip command of Linux". Next, please follow the editor to study!
The Linux common command unzip command is used to extract the ".zip" package compressed by the zip command.
Unzip is used to extract compressed packages compressed by the zip command
Syntax unzip (option) (parameter) option-c: displays the unzipped result to the screen and converts the characters appropriately;-f: updates the existing file;-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: check whether the compressed file is correct. -u: similar to the-f parameter, but in addition to updating existing files, other files in the compressed file will also be unzipped to the directory;-v: display detailed information during execution;-z: display only the memo text of the compressed file;-a: perform the necessary character conversion for the text file;-b: do not convert the text file. -C: file names in compressed files are case-sensitive;-j: do not deal with the original directory paths in compressed files;-L: change all file names in compressed files to lowercase;-M: send the output to the more program for processing;-n: do not overwrite the original file when decompressing;-o: do not ask the user first, overwrite the original file after unzip execution -P: use zip's password option;-Q: no information is displayed during execution;-s: convert white space characters in the file name to underline characters;-V: retain the file version information of VMS;-X: save the original UID/GID;-d of the file when unzipping: specify the directory to be stored after the file is unzipped;-x: specify which files in the .zip file should not be processed. -Z:unzip-Z equals executing the zipinfo instruction. Parameter package: specifies the ".zip" package to extract.
The instance unzips the compressed file text.zip in the current directory.
Unzip test.zip unzips the compressed file text.zip under the specified directory / tmp. If the same file already exists, the unzip command is required not to overwrite the previous file.
Unzip-n test.zip-d / tmp looks at the directory of compressed files, but does not unzip them.
Unzip-v test.zip unzips the compressed file test.zip under the specified directory / tmp. If the same file already exists, ask the unzip command to overwrite the original file.
Unzip-o test.zip-d tmp/ decompresses the specified file, and * is used as a wildcard.
Unzip test.zip "* .jpg" at this point, the study on "how to use Linux's unzip command" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un