Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #37073

Re: Zip list

From Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups comp.os.linux.misc
Subject Re: Zip list
Date 2023-02-16 16:31 +0000
Organization The Pitcher Digital Freehold
Message-ID <tsllpp$39v7h$1@dont-email.me> (permalink)
References <tsljq7$39q0j$1@dont-email.me>

Show all headers | View raw


On Thu, 16 Feb 2023 16:57:59 +0100, db wrote:

> This might be the wrong ng but anyway...
> I refer to using typed commands in Linux.
> With tar, I can use the option -t to get a list of a tarred file's
> contents.
> I can't however find such an option for zip, so I have to go into GUI
> and click on the zip file to see the contents.
> Am I missing that option,  or isn't there one?

The capability of /listing/ the contents of a zip package is relegated
to the unzip(1) command; zip(1) only creates or updates zip packages.

The manpage for unzip(1) says...

  UNZIP(1L)                                                 UNZIP(1L)
  NAME
     unzip - list, test and extract compressed files in a ZIP archive
  SYNOPSIS
    unzip  [-Z] [-cflptTuvz[abjnoqsCDKLMUVWX$/:^]] file[.zip]
           [file(s) ...] [-x xfile(s) ...] [-d exdir]

  DESCRIPTION
    unzip will list, test, or extract files from a ZIP archive,  commonly
    found  on MS-DOS systems. 

  ...

  OPTIONS
    ...
    -l     list archive files (short format).  The names, uncompressed
           file sizes and modification dates and times of the specified
           files are  printed,  along  with  totals  for all files
           specified. ...
    ...
    -v     list archive files (verbose format) or show diagnostic version
           info. This option has evolved and now behaves as both an option
           and a modifier. As an option it has two purposes: when a  zip-
           file  is specified with no other options, -v lists archive
           files verbosely, adding to the basic -l info the compression
           method, compressed  size, compression ratio and 32-bit CRC. ...

So, use unzip(1) to obtain a list of the files in your zip archive.

HTH
-- 
Lew Pitcher
"In Skills We Trust"

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Zip list db <dieterhansbritz@gmail.com> - 2023-02-16 16:57 +0100
  Re: Zip list Bobbie Sellers <bliss@mouse-potato.com> - 2023-02-16 08:12 -0800
    Re: Zip list "25B.R866" <25B.R866@noaaba.net> - 2023-02-18 03:59 -0500
      Re: Zip list Andreas Kohlbach <ank@spamfence.net> - 2023-02-18 16:16 -0500
        Re: Zip list "25B.R866" <25B.R866@noaaba.net> - 2023-02-18 21:40 -0500
          Re: Zip list Andreas Kohlbach <ank@spamfence.net> - 2023-02-19 21:13 -0500
            Re: Zip list Computer Nerd Kev <not@telling.you.invalid> - 2023-02-20 17:19 +1000
              Re: Zip list "Carlos E. R." <robin_listas@es.invalid> - 2023-02-20 11:38 +0100
  Re: Zip list Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2023-02-16 16:31 +0000
  Re: Zip list Robert Heller <heller@deepsoft.com> - 2023-02-16 16:51 +0000
    Re: Zip list Andreas Kohlbach <ank@spamfence.net> - 2023-02-16 19:21 -0500
  Re: Zip list "Nuno Silva" <nunojsilva@invalid.invalid> - 2023-02-17 10:44 +0000
    Re: Zip list "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2023-02-17 10:41 -0500
      Re: Zip list Robert Heller <heller@deepsoft.com> - 2023-02-17 16:28 +0000
        Re: Zip list "Carlos E. R." <robin_listas@es.invalid> - 2023-02-17 19:06 +0100
          Re: Zip list Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2023-02-17 19:32 +0000
            Re: Zip list Bobbie Sellers <bliss@mouse-potato.com> - 2023-02-17 11:56 -0800
              Re: Zip list "Carlos E. R." <robin_listas@es.invalid> - 2023-02-17 21:10 +0100
            Re: Zip list "Carlos E. R." <robin_listas@es.invalid> - 2023-02-17 20:59 +0100
            Re: Zip list The Natural Philosopher <tnp@invalid.invalid> - 2023-02-18 10:12 +0000
              Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-02-18 12:43 +0100
                Re: Zip list The Natural Philosopher <tnp@invalid.invalid> - 2023-02-18 13:15 +0000
                Re: Zip list Robert Heller <heller@deepsoft.com> - 2023-02-18 14:46 +0000
                Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-02-18 17:39 +0100
                Re: Zip list The Natural Philosopher <tnp@invalid.invalid> - 2023-02-19 11:10 +0000
                Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-02-19 12:42 +0100
                Re: Zip list "25B.E866" <25B.E866@noaaba.net> - 2023-02-22 00:58 -0500
                Re: Zip list "Carlos E. R." <robin_listas@es.invalid> - 2023-02-22 18:54 +0100
                Re: Zip list Andreas Kohlbach <ank@spamfence.net> - 2023-02-22 17:00 -0500
                Re: Zip list not@telling.you.invalid (Computer Nerd Kev) - 2023-02-23 09:23 +1000
                Re: Zip list Andreas Kohlbach <ank@spamfence.net> - 2023-02-22 19:41 -0500
                Re: Zip list Andreas Kohlbach <ank@spamfence.net> - 2023-02-22 19:43 -0500
                Re: Zip list "25B.E866" <25B.E866@noaaba.net> - 2023-02-23 01:08 -0500
                Re: Zip list "Andrei Z." <no-email@invalid.invalid> - 2023-02-23 13:32 +0300
                Re: Zip list "25B.E866" <25B.E866@noaaba.net> - 2023-02-23 11:23 -0500
                Re: Zip list "Andrei Z." <no-email@invalid.invalid> - 2023-02-23 20:29 +0300
                Re: Zip list "25B.E866" <25B.E866@noaaba.net> - 2023-02-23 21:22 -0500
                Re: Zip list Computer Nerd Kev <not@telling.you.invalid> - 2023-02-24 13:18 +1000
                Re: Zip list "25A.I866" <25A.I866@noacba.net> - 2023-02-25 00:13 -0500
                Re: Zip list Computer Nerd Kev <not@telling.you.invalid> - 2023-02-26 12:01 +1000
                Re: Zip list "Andrei Z." <no-email@invalid.invalid> - 2023-02-24 07:58 +0300
                Re: Zip list "25A.I866" <25A.I866@noacba.net> - 2023-02-25 00:15 -0500
                Re: Zip list "Andrei Z." <no-email@invalid.invalid> - 2023-02-25 09:34 +0300
                Re: Zip list "25A.I866" <25A.I866@noacba.net> - 2023-02-25 02:33 -0500
                Re: Zip list The Natural Philosopher <tnp@invalid.invalid> - 2023-02-25 10:19 +0000
                Re: Zip list Eric Pozharski <whynot@pozharski.name> - 2023-02-25 13:43 +0000
                Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-02-25 12:04 +0100
                Re: Zip list The Natural Philosopher <tnp@invalid.invalid> - 2023-02-25 10:00 +0000
                Re: Zip list Andreas Kohlbach <ank@spamfence.net> - 2023-02-18 16:18 -0500
                Re: Zip list The Natural Philosopher <tnp@invalid.invalid> - 2023-02-19 11:13 +0000
                Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-02-19 12:48 +0100
                Re: Zip list "25A.I866" <25A.I866@noacba.net> - 2023-02-25 00:51 -0500
                Re: Zip list Rich <rich@example.invalid> - 2023-02-25 06:15 +0000
                Re: Zip list "25A.I866" <25A.I866@noacba.net> - 2023-02-25 02:30 -0500
                Re: Zip list The Natural Philosopher <tnp@invalid.invalid> - 2023-02-25 10:17 +0000
                Re: Zip list "25A.I866" <25A.I866@noacba.net> - 2023-02-25 23:08 -0500
                Re: Zip list Robert Riches <spamtrap42@jacob21819.net> - 2023-02-26 03:46 +0000
                Re: Zip list The Natural Philosopher <tnp@invalid.invalid> - 2023-02-25 10:09 +0000
                Re: Zip list "25A.I866" <25A.I866@noacba.net> - 2023-02-26 00:12 -0500
                Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-02-25 12:10 +0100
                Re: Zip list "25A.I866" <25A.I866@noacba.net> - 2023-02-25 23:41 -0500
                Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-02-26 20:22 +0100
                Re: Zip list "28A.I873" <28A.I873@noabzba.net> - 2023-02-26 23:56 -0500
                Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-02-27 19:26 +0100
                Re: Zip list "28A.I873" <28A.I873@noabzba.net> - 2023-02-27 22:20 -0500
                Re: Zip list Rich <rich@example.invalid> - 2023-02-28 15:21 +0000
                Re: Zip list "Carlos E.R." <robin_listas@es.invalid> - 2023-03-01 23:23 +0100
                Re: Zip list "28A.I873" <28A.I873@noabzba.net> - 2023-03-02 00:02 -0500
              Re: Zip list Andreas Kohlbach <ank@spamfence.net> - 2023-02-18 16:17 -0500
            Re: Zip list Eric Pozharski <whynot@pozharski.name> - 2023-02-18 14:55 +0000

csiph-web