Home  >  Article  >  Operation and Maintenance  >  How to use the linux zip compression command

How to use the linux zip compression command

coldplay.xixi
coldplay.xixiOriginal
2021-02-03 16:10:1391222browse

How to use the linux zip compression command: 1. Use zip to pack the folder, the code is [zip -r -q -o pack.zip mark/]; 2. Use the [-e] parameter to create encryption Compressed package, the code is [zip -r -e o packencryption.zi].

How to use the linux zip compression command

The operating environment of this tutorial: linux7.3 system, DELL G3 computer.

How to use the linux zip compression command:

1. Use zip to package the folder:

zip -r -q -o pack.zip mark/

The above command will copy all files under the directory mark/ file, package it into a compressed file, and check the size and type of the packaged file. In the first line of the command, the

-r parameter indicates recursive packaging of all contents of the subdirectory, and the

-q parameter indicates quiet mode, that is, no information is output to the screen,

-o, indicates the output file, and must be followed by the packaged output file name.

How to use the linux zip compression command

2. To create an encrypted zip package, you need to use the -e parameter to create an encrypted compressed package:

zip -r -e o packencryption.zip mark/

Then enter the password twice.

How to use the linux zip compression command

Related learning recommendations: linux video tutorial

The above is the detailed content of How to use the linux zip compression command. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn