我需要提取unzip
不带详细输出的war 文件
我是这样做的 -
unzip myFile.war -d /home/app/
但这会产生冗长的输出。我该如何避免这种情况?
答案1
您可以安静地解压缩,只需使用 -qq 选项(请参阅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 -qq myFile.war -d /home/app/