🖥️unzip

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the unzip command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#                ██╗   ██╗███╗   ██╗███████╗██╗██████╗ 
#                ██║   ██║████╗  ██║╚══███╔╝██║██╔══██╗
#                ██║   ██║██╔██╗ ██║  ███╔╝ ██║██████╔╝
#                ██║   ██║██║╚██╗██║ ███╔╝  ██║██╔═══╝ 
#                ╚██████╔╝██║ ╚████║███████╗██║██║     
#                 ╚═════╝ ╚═╝  ╚═══╝╚══════╝╚═╝╚═╝     
                                                      
                                                      
                                                     
# Extract archive
unzip archive.zip

# Test integrity of archive
unzip -tq archive.zip

# List files and directories in a file
unzip -l archive.zip

# Clean up the garbage an accidental unzipping makes - List out all the names from the zip file and pass it to xargs utility to delete each one of them
unzip -Z -1 <filename.zip> | xargs -I{} rm -v {}

#==============================##==============================#
# CMD UNZIP						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░