For linux command zip & unzip, use zip to compress the file. at the shell prompt, enter the following command: Ghost indicates the file you created, and filesdir indicates that you want to place the new zip file...
For linux command zip & unzip, use zip to compress the file. at the shell prompt, enter the following command: zip-r filename.zip filesdir www.2cto.com. In this example, filename.zip represents the file you created, filesdir indicates the directory where you want to place the new zip file. The-r option specifies that you want to recursively include all files included in the filesdir directory. To extract the content of a zip file, type the following command: unzip filename.zip you can use the zip command to process multiple files and directories at the same time by listing them one by one and using the space interval: zip-r filename.zip file1 file2 file3/usr/work/school
The contents of the Directory (assuming this directory exists) are compressed and then put into the filename.zip file.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.