Entpacken einer War-Datei in einen Zielordner ohne ausführliche Ausgabe

Entpacken einer War-Datei in einen Zielordner ohne ausführliche Ausgabe

ich muss eine War-Datei unzipohne ausführliche Ausgabe extrahieren

ich mache es so -

unzip myFile.war -d /home/app/

aber das erzeugt eine ausführliche Ausgabe. Wie kann ich das verhindern?

Antwort1

Sie können die Datei im Hintergrund entpacken. Verwenden Sie dazu einfach die Option -qq (siehe 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.

Ihr Befehl wird:

unzip -qq myFile.war -d /home/app/

verwandte Informationen