How to use linux zip Compression Command
This article mainly introduces the use of linux zip compression command, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
The linux zip compression command is used: 1, use zip to package the folder, the code is [zip-r-Q-o pack.zip mark/]; 2, use the [- e] parameter to create an encrypted package, code is [zip-r-e o packencryption.zi].
How to use the linux zip compression command:
1. Use zip to package folders:
Zip-r-Q-o pack.zip mark/
The above command packages all the files under the directory mark/ into a compressed file and looks at the size and type of the packaged file. In the first line of command
The-r parameter indicates that the recursive package contains all the contents of the subdirectory
The-Q parameter is expressed in quiet mode, that is, no information is output to the screen
-o, which represents the output file, followed by the name of the output file.
2. To create an encrypted zip package, you need to use the-e parameter to create an encrypted package:
Zip-r-e o packencryption.zip mark/
Then enter the password twice.
Thank you for reading this article carefully. I hope the article "how to use the linux zip Compression Command" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!