
我需要提取一個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/