GNU/Linux Command – UNZIP

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


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.

$ unzip -- Unzip the $ unzip -t -- 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)

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: