![linux解压缩文件](https://img-blog.csdnimg.cn/img_convert/ffd7e43ffcccfbfc63f01fadb03ea42a.png)
linux解压缩文件
Winzip, Winrar are popular packaging and compression tools for Windows operating system. Winzip was very popular in old times and this made the zip compression algorithm popular too. Currently, a lot of files and folders are compressed with zip algorithms too. Zip compression is supported by Minix, Atari, MacOS, Android too. We look at how to compress and decompress with the zip algorithm in this post.
Winzip,Winrar是用于Windows操作系统的流行打包和压缩工具。 Winzip在过去非常流行,这也使zip压缩算法也很流行。 当前,许多文件和文件夹也使用zip算法压缩。 Minix,Atari,MacOS和Android也支持Zip压缩。 在本文中,我们将介绍如何使用zip算法进行压缩和解压缩。
为Ubuntu,Debian,Mint,Kali安装Zip (Install Zip For Ubuntu, Debian, Mint, Kali)
To use zip functionality required packages should be downloaded they are not installed by default. We will install the packages named zip
and unzip
for deb based distributions.
要使用zip功能,应下载所需的软件包,默认情况下未安装它们。 我们将为基于deb的发行版安装名为zip
和unzip
的软件包。
$ sudo apt-get install zip unzip -y
![Install Zip](https://img-blog.csdnimg.cn/img_convert/34b59e73237c5101574d0e98b8189f78.png)
为Fedora,CentOS,RHEL安装Zip (Install Zip For Fedora, CentOS, RHEL)
We can use yum
package manager in order to install zip
.
我们可以使用yum
软件包管理器来安装zip
。
$ sudo yum install zip
zip命令语法 (zip Command Syntax)
zip command uses the following syntax. It accepts multiple files and folders to zip with a single step with.
zip命令使用以下语法。 它接受多个文件和文件夹,只需一步即可压缩。
zip OPTIONS ARCHIVE INPATH INPATH ...
OPTIONS
will be used to set some attributes or behavior to the zip command like compressions level etc.OPTIONS
将用于为zip命令设置一些属性或行为,例如压缩级别等。ARCHIVE
is the name of the compressed file which will be created.ARCHIVE
是将要创建的压缩文件的名称。INPATH
is the files and folders we can compress. There may be more than one INPATH.INPATH
是我们可以压缩的文件和文件夹。 可能有多个INPATH。