In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to achieve compression and decompression in Linux, the article introduces in great detail, has a certain reference value, interested friends must read it!
A commonly used compression format
.zip
.gz
.bz2
.tar.gz
.tar.bz2
II. Zip format compression
1. Grammar
Zip compressed file name source file name
Compressed file
Zip-r compressed file name source directory
Compressed directory
Unzip compressed file
Extract the .zip file
2. Description
The format of .zip is common in windows and LInux.
3. Actual combat
Root@localhost test] # lsabc cdf [root@localhost test] # zip abc.zip abcadding: abc (stored 0%) [root@localhost test] # mkdir dirtst [root@localhost test] # touch. / dirtst/ert [root@localhost test] # zip-r dirtst.zip dirtstadding: dirtst/ (stored 0%) adding: dirtst/ert (stored 0%) [root@localhost test] # lsabc abc.zip cdf dirtst dirtst.zip [root@localhost test] # rm-fr abc [root@localhost test] # lsabc.zip cdf Dirtst dirtst.zip [root@localhost test] # unzip abc.zipArchive: abc.zipextracting: abc [root@localhost test] # lsabc abc.zip cdf dirtst dirtst.zip [root@localhost test] # rm-rf dirtst [root@localhost test] # unzip dirtst.zipArchive: dirtst.zipcreating: dirtst/extracting: dirtst/ert [root@localhost test] # lsabc abc.zip cdf dirtst dirtst.zip is all the content of the article "how to compress and decompress in Linux" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow 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.
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.