List contents of a zip and extract a single file from a zip

To list the contents of a zip file use the following command:

unzip -vl a_zip_file.zip

To extract one single file from a zip file use the following command:

unzip -p a_zip_file.zip path/to/zipped/file.txt > file.txt

Leave a Reply

Your email address will not be published. Required fields are marked *