Inspect the list of files in an archive.
unzip -l site-backup.zipList or extract ZIP contents. Inspect untrusted archives before extraction.
unzip [OPTION]... ARCHIVE.zip [FILE...] [-d DIRECTORY]Inspect the list of files in an archive.
unzip -l site-backup.zipExtract without replacing existing files.
unzip -n site-backup.zip -d ./restore| Option / clause | Description |
|---|---|
-l | List archive contents without extracting. |
-t | Test archive integrity. |
-o | Overwrite existing files without prompting. |
-n | Never overwrite existing files. |
-j | Discard directory paths and extract into one directory. |
-d DIR | Extract files into DIR. |
-Z | Run zipinfo mode for archive listing options. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.