Unzip: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:
<font color=darkgray>This works on Mac, test on Linux.</font>
<font color=darkgray>This works on Mac, test on Linux.</font>


  unzip <''source-file.zip''> -d <''target-dir''>
  unzip <''source-file''.zip> -d <''target-dir''>


where the content of source-file.zip will be extracted into the specified target directory. The target directory is created if it does not exist.
where the content of source-file.zip will be extracted into the specified target directory. The target directory is created if it does not exist.
=List Content=
  unzip -l <''source-file''.zip>

Revision as of 08:26, 5 March 2020

Internal

Options

-q

Quiet mode

-qq

Quieter

Overwrite Already Existing Files

unzip -o ...

Extract into a Target Directory

This works on Mac, test on Linux.

unzip <source-file.zip> -d <target-dir>

where the content of source-file.zip will be extracted into the specified target directory. The target directory is created if it does not exist.

List Content

 unzip -l <source-file.zip>