Unzip Files


unzip

Expanding a Zip archive isn't hard at all. To create a zipped archive, use the zip command; to expand that archive, use the unzip command.

$ unzip moby.zip Archive:  moby.zip inflating: job.txt inflating: moby-dick.txt inflating: paradise_lost.txt 


The unzip command helpfully tells you what it's doing as it works. To get even more information, add the -v option (which stands, of course, for verbose).

unzip -v moby.zip Archive:  moby.zip Length  Method  Size  Ratio CRC-32   Name ------- ------ ------ ----- ------   ----  102519 Defl:X  35747  65%  fabf86c9 job.txt 1236574 Defl:X 487553  61%  34a8cc3a moby-dick.txt  508925 Defl:X 224004  56%  6abe1d0f paradise_lost.t -------        ------  ---           ------- 1848018        747304  60%           3 files 


There's quite a bit of useful data here, including the method used to compress the files, the ratio of original to compressed file size, and the cyclic redundancy check (CRC) used for error correction.



Linux Phrasebook
Linux Phrasebook
ISBN: 0672328380
EAN: 2147483647
Year: 2007
Pages: 288

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net