GNU/Linux Command – UNZIP

unzip — List, Test and Extract compressed files in a ZIP format.

Summary:

unzip will list, test, or extract files from a ZIP archive. The default behavior (with no options) is to extract into the current directory (and subdirectories below it) all files from the specified ZIP archive. Read man zip.

Example:
$ unzip myfile.zip -- Unzip the myfile.zip $ unzip -t myfile.zip -- Test correctness of the file. $ unzip myfile *.txt -- Unzip only *.txt files $ unzip myfile *.txt *.sxi *.tex -- Unzip only *.txt, *.sxi and *.tex files $ unzip myfile -d /tmp -- Unzip the files in /tmp Dir. $ unzip -f myfile -- Unzip files which are newer then current Dir files. $ unzip -o myfile -- Unzip and overwrite existing files without prompting.

Read: man unzip (Lot of examples are available)

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: