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

Detailed explanation of zip Compression and Unzip decompression commands in CentOS

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The following commands operate under the / home directory

Cd / home # enter the / home directory

1. Compress the mydata directory under the / home directory to mydata.zip

Zip-r mydata.zip mydata # compress mydata directory

2. Extract the mydata.zip under the / home directory into the mydatabak directory

Unzip mydata.zip-d mydatabak

3. Compress the abc folder and 123.txt under the / home directory into abc123.zip

Zip-r abc123.zip abc 123.txt

4. Extract the wwwroot.zip under the / home directory directly into the / home directory

Unzip wwwroot.zip

5. Decompress the abc12.zip, abc23.zip and abc34.zip in the / home directory to the server in the / 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 the wwwroot.zip under the / home directory is complete

Unzip-t wwwroot.zip

8. Extract all the files in wwwroot.zip under the / home directory to the first level directory.

Unzip-j wwwroot.zip

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