Unix系统(“ unzip archive.zip”)静默提取Zip文件


Answers:


32

男子解压缩:

   -q     perform  operations  quietly  (-qq  = even quieter).  Ordinarily
          unzip prints the names of the files it's extracting or  testing,
          the extraction methods, any file or zipfile comments that may be
          stored in the archive, and possibly a summary when finished with
          each  archive.   The -q[q] options suppress the printing of some
          or all of these messages.

4

解压缩手册页

-q

安静地执行操作(-qq =更加安静)。通常,解压缩会打印要提取或测试的文件的名称,提取方法,可能存储在归档文件中的任何文件或zipfile注释,以及在完成每个归档文件时的摘要。所述-q [ q ]选项抑制的一些或所有这些消息的打印。

就是unzip -qq yourfile.zip这样


1
这个答案已经存在
George Vasiliou

抱歉,当我开始输入时没有。
Artemis


1

我建议与此一起使用gunzip命令

gunzip /path/to/file/filename.z

这也会默默输出

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.