Moh*_*dil 42 command-line unzip
我需要提取一个unzip没有详细输出的战争文件
我是这样做的 -
unzip myFile.war -d /home/app/
但这会产生冗长的输出。我怎样才能防止这种情况?
Syl*_*eau 67
您可以安静地解压缩,只需使用 -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.
Run Code Online (Sandbox Code Playgroud)
你的命令变成:
unzip -qq myFile.war -d /home/app/
Run Code Online (Sandbox Code Playgroud)