linux解压缩文件_如何在Linux中压缩,解压缩文件?

linux解压缩文件

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的发行版安装名为zipunzip的软件包。

$ sudo apt-get install zip unzip -y
Install Zip
Install Zip For Ubuntu, Debian, Mint, Kali
为Ubuntu,Debian,Mint,Kali安装Zip

为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。

压缩档案

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值