In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is mainly for everyone to analyze the Linux system decompression zip file command is what the relevant knowledge points, the content is detailed and easy to understand, the operation details are reasonable, with certain reference value. If you are interested, you may wish to follow Xiao Bian to have a look. Let's follow Xiao Bian to learn more about "What is the command for Linux system to decompress zip files".
1. compress the mydata directory under/home directory to mydata.zip
zip -r mydata.zip mydata #compress mydata directory
2. Unzip mydata.zip under/home directory into mydatabak directory
unzip mydata.zip -d mydatabak
3. compress the abc folder and 123.txt under/home directory into abc123.zip
zip -r abc123.zip abc 123.txt
4. Unzip wwwroot.zip directly into the/home directory
unzip wwwroot.zip
5. Extract abc12.zip, abc23.zip and abc34.zip under/home directory to/home directory at the same time
unzip abc*.zip
6. Check the contents of wwwroot.zip under the/home directory
unzip -v wwwroot.zip
7. Verify that wwwroot.zip under/home directory is complete
unzip -t wwwroot.zip
8. Unzip all the files in wwwroot.zip under/home directory to the first level directory
unzip -j wwwroot.zip
main parameters
-c: the result of decompression
-l: Display files contained in compressed files
-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, it also unpacks other files in the compressed file into the directory
-v: Display detailed information when executing Yes
-z: Show only the comment text of compressed files
-a: Perform necessary character conversion on text files
-b: Do not convert text files
-C: File names in compressed files are case sensitive
-j: Do not process the original directory path in the compressed file
-L: Change all file names in compressed files to lowercase
-M: Send output to more program for processing
-n: Do not overwrite the original file when decompressing
-o: No need to ask the user first, unzip will overwrite the original file after execution
-P: Password option using zip
-q: Execution without displaying any information
-s: converts white space characters in filenames to baseline characters
-V: Keep VMS file version information
-X: Save the original UID/GID of the file while decompressing
Linux versions are: Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and other versions. Deepin is one of the best Linux distributions in China; Ubuntu Kylin is a derivative distribution based on Ubuntu;Manjaro is a Linux distribution based on Arch;LinuxMint's default Cinnamon desktop is similar to Windows XP and easy to use;Ubuntu is a Linux operating system based on desktop applications.
About "Linux system decompression zip file command is what" on the introduction to this, more related content can be searched for previous articles, I hope to help you answer questions, please support the site!
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
© 2024 shulou.com SLNews company. All rights reserved.