zip 命令基本格式为:

zip options archive inpath inpath ...

archive.zip 文件(新的或已经存在的)。

inpath 是需要打包的目录或文件。

打包文件

zip -r foo.zip foo bar

删除文件

zip -d foo.zip foo/hello.txt

unzip

解压到指定目录

unzip -d bar foo.zip

相关文章:

  • 2022-12-23
  • 2021-11-26
  • 2021-11-29
  • 2022-12-23
  • 2021-12-04
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2021-08-02
  • 2022-01-24
  • 2021-08-31
  • 2021-08-16
  • 2021-09-07
  • 2021-12-29
相关资源
相似解决方案