Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example of the use of the linux compressed file command zip

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces in detail the use of the linux compression file command zip for everyone, the example code in the article is very detailed, has a certain reference value, interested friends can refer to it.

".zip" format is used to compress files on Windows systems. In fact, ".zip" format files are commonly used in both Windows and Linux systems. They belong to one of several mainstream compression formats (zip, rar, etc.). It is a fairly simple storage format for compressing each file separately.

The usage of the linux compressed file command zip

Zip [options] compress the package name source file or source directory list

Options:

The meaning of the option-r recursively compresses the directory and compresses all files and subdirectories under the specified directory. -m after compressing the file, deleting the original file is equivalent to moving the file to the compressed file. -v displays detailed compression process information. -Q does not show the execution of the command during compression. -Compression level is a number from 1 to 9,-1 means faster compression, and-9 means better compression. -u update the compressed file, that is, add a new file to the compressed file.

Examples of use:

1. Compress a single file

Zip ana.zip anaconda-ks.cfg

2. Compress multiple files

Zip test.zip install.log install.log.syslog

3. Compressed folder

Zip-r dir1.zip dir1

These are the details of the use of the linux compressed file command zip. Do you have anything to gain after reading it? If you want to know more about it, welcome to the industry information!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report