How can I get the equivalent of an ls
of a .zip file (not gzip), without decompressing it, from the command shell? That is, how can I list the different files compressed within my .zip archive?
Using Vim. Vim command can also be used to view the contents of a ZIP archive without extracting it. It can work for both the archived files and folders. Along with ZIP, it can work with other extensions as well, such as tar.
To list all the contents of a compressed gzip archive (or any kind of tar file), use the -t option with tar. We'll also need the -f option, since we will specify the name of our tar file after. This will return a full list of all the files and directories that reside inside the archive.
open archive in archive manager. open text file in KDE gui editor. save text file and system ask you to refresh archive - click yes.
Use unzip with -l
option:
unzip -l file.zip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With