Linux system does not have its own compression decompression tool, we need to install it, when using zip or unzip if not installed will appear unzip:command not Found or Zip:command not Found; This happens because there is no installation of unzip and zip;
If the Ubuntu system can be installed with the following command
sudo apt-get install zip
- 2
If it is installed with Yum, install it with the following command
Yum install-y unzip zip;
Cd/home #进入/home Directory
1. Compress the MyData directory below the/home directory to Mydata.zip
Zip-r Mydata.zip MyData #压缩mydata目录
2. Unzip the mydata.zip under the/home directory into the Mydatabak directory
Unzip mydata.zip-d Mydatabak
3, the home/home directory below the ABC folder and 123.txt compression becomes abc123.zip
Zip-r abc123.zip ABC 123.txt
4. Extract the Wwwroot.zip from the/home directory directly into the/home directory
Unzip Wwwroot.zip
5, the Home/home directory under the Abc12.zip, Abc23.zip, abc34.zip simultaneously extracted to the/home directory
Unzip Abc\*.zip
6. View the contents of the wwwroot.zip inside the/home directory
Unzip-v Wwwroot.zip
7. Verify that the wwwroot.zip under the/home directory is complete
Unzip-t Wwwroot.zip
8. Unzip all the files inside the/home directory under Wwwroot.zip to the first level directory
Unzip-j Wwwroot.zip
Installation and use of six--unzip/zip of Linux learning