In Linux, you can use the “unzip” command to extract,list or test ZIP files. Below are the common tasks I use “unzip” for.
Extract the contents of a ZIP file into it’s own directory and also create subdirectories as needed.
# unzip [filename].zipExtract the contents of a ZIP file into the current directory only. No subdirectories will be created.
# unzip -j [filename].zipExtract the contents of a ZIp file into a custom directory.
# unzip -d [target directory] [filename].zipList the contents of a ZIP file.
# unzip -l [filename].zipTest the integrity of a ZIP file and it’s contents.
 # unzip -t [filename].zipExtract the contents of a ZIP file only if the files already exist in the target directory. Good for upgrades.
# unzip -tq [filename].zip (Only shows summary)
# unzip -f [filename].zipExtract the contents of a ZIP file if the contents are newer then what’s available in the target directory or don’t exist yet. Good for upgrades.
# unzip -fo [filename].zip (non interactive. Yes to all)
# unzip -u [filename].zipDid this help? If you need further information please drop me a comment.
# unzip -uo [filename].zip (non interactive. Yes to all)