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

How to use the linux zip compression command

coldplay.xixi
Release: 2022-01-12 15:12:57
Original
91379 people have browsed it

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/
Copy after login

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/
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template