One advantage to unzip however is that it appears on more unix platforms than zipinfo, meaning you should find it to be compatible with almost any OS you run across, whereas zipinfo is often not as common to come across. Sample output of the command is shown below:įor most uses it’s probably best to use the zipinfo command, if not for it’s simplicity, than for it’s extended reporting of archive contents. The reported information is not as detailed as ‘zipinfo’ but it still includes meaningful details including individual file size, file modification date and time, total file count, and file names. Checking Zip Contents with unzipĪnother way to see the contents of zips is to use the familiar ‘unzip’ command with a simple -l flag. The zipinfo command will only work for zip archives, and it will not view the contents of password protected zips. rw-r-r- 2.1 unx 132 bX defN 21-May-13 12:44 testingsomething.txtĥ files, 4486 bytes uncompressed, 991 bytes compressed: 77.9% Here’s an example of the command and some sample output, remember output always looks cleaner in the terminal than it does on a webpage: All of this information is revealed without uncompressing the zip. At it’s most basic usage, it requires no flags or anything fancy, just point it at a zip file and you’ll see a full list of the archives contents, the file size of each item within the archive, file count, total size of the zip, the read/write/execution permissions per file, file modification date and time, the compression level and efficacy of the compression, and of course, the file names. The most informative for zips and perhaps the easiest to remember is the ‘zipinfo’ command. Viewing Zip Archive Contents with zip info
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |