詳細な出力なしで、war ファイルを宛先フォルダに解凍する

詳細な出力なしで、war ファイルを宛先フォルダに解凍する

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/

関連情報