Home  >  Article  >  System Tutorial  >  Detailed explanation of decompression file command (zip) under centos7

Detailed explanation of decompression file command (zip) under centos7

WBOY
WBOYforward
2024-01-07 18:30:351608browse

1. The compressed folder is a zip file

[root@cgls ]# zip -r mydata.zip mydata 

2. Unzip mydata.zip into the mydatabak directory

[root@cgls ]# unzip mydata.zip -d mydatabak

3.mydata01 folder and mydata02.txt are compressed into mydata.zip

[root@cgls ]# zip mydata.zip mydata01 mydata02.txt

4. Decompress the mydata.zip file directly

[root@cgls ]# unzip mydata.zip

5. View the contents of the mydata.zip file

[root@cgls ]# unzip -v mydata.zip

The above is the detailed content of Detailed explanation of decompression file command (zip) under centos7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete