Home>Article>Operation and Maintenance> How to use the linux zip compression command
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].
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.
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.
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!