我使用“unzip filename.zip”从脚本解压了一个文件,在终端中我看到了所有解压后的文件名称。我想在解压文件时不打印这些名称,这样我就可以获得一个干净的终端界面。
答案1
来自以下MODIFIERS
部分man unzip
:
-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.
所以
unzip -q filename.zip