[root@localhost ~]# yum install -y zip unzip    // 安装 zip 和 unzip
[root@localhost ~]# zip 1.zip 1.txt             // 压缩文件,要同时指定压缩后的文件名
[root@localhost ~]# zip -r test.zip test        // 压缩目录,要同时指定压缩后的文件名
[root@localhost ~]# zip 1.zip 1.txt 2.txt       // 表示把 1.txt 和 2.txt 压缩成一个文件 1.txt.zip
[root@localhost ~]# unzip 1.zip                 // 解压缩

 

相关文章:

  • 2021-06-26
  • 2022-01-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-02-19
  • 2021-06-20
  • 2022-02-12
相关资源
相似解决方案