Unable to unzip zip file with unzip command

Asked 2 years ago, Updated 2 years ago, 39 views

For example, in the directory where the file sample.zip resides,

unzip sample.zip

The command does not unzip the file and
Instead, only how to use the unzip command appears.

UnZip 6.00 of 20 April 2009, by Debian.Original by Info-ZIP.

Usage: unzip[-Z][-opts[modifiers]] file[.zip][list][-xlist][-dexdir]
  Default action is to extract files in list, except these in xlist, to exdir;
  file [.zip] may be a wildcard. -Z=>ZipInfo mode ("unzip-Z" for usage).

  -p extract files to pipe, no messages-l list files (short format)
  -f fresh existing files, create none-t test compressed archive data
  -u update files, create if necessary -z display archive comment only
  -v list verbosely/show version info-T timestamp archive to latest
  -x exclude files that follow (in xlist) -d extract files into exdir
modifiers:
  -never overwrite existing files-qquiet mode (-qq=>quiet)
  -overwrite files WITHOUT prompting-a auto-convert any text files
  -j junk paths (do not make directories) - aatreat ALL files as text
  -C match filenames case -insensitive -L make (some) names lowercase
  - X restore UID/GID info-V retain VMS version numbers
  - K keep setuid/setgid/tacky permissions - M pipe through "more" pager
See "unzip-hh" or unzip.txt for more help.Examples:
  unzip data1-x joe=>extract all files except joe from zipfile data1.zip
  unzip-p foo | more=> send contents of foo.zip via pipe into program more
  unzip-fooo ReadMe=>quietly replace existing ReadMe if archive file newer

Why

unzip ZZIP filename <

Can't you execute the command in the format shown in ?

The running environment is Ubuntu 18.04.3 LTS.

linux

2022-09-29 22:18

1 Answers

The unzip command path is in the bin folder

/usr/bin/unzip

but not linuxbrew

/home/linuxbrew/.linuxbrew/bin/unzip

was replaced by .

Therefore, I was able to confirm that /usr/bin/unzip in the full path will work as intended.


2022-09-29 22:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.