Test Files That Will Be Unzipped


-t

Sometimes zipped archives become corrupted. The worst time to discover this is after you've unzipped the archive and deleted it, only to discover that some or even all of the unzipped contents are damaged and won't open. Better to test the archive first before you actually unzip it by using the -t (for test) option.

$ unzip -t moby.zip Archive:  moby.zip     testing: bible/                   OK     testing: bible/genesis.txt        OK     testing: bible/job.txt            OK     testing: moby-dick.txt            OK     testing: paradise_lost.txt        OK No errors detected in compressed data of moby.zip. 


You really should use -t every time you work with a zipped file. It's the smart thing to do, and although it might take some extra time, it's worth it in the end.



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