Thatâs not good, this is a command for a binary file thatâs provided by the Linux distribution so shouldnât have these kind of errors. Can you think of anything you might have done which might have changed this file?
You might be able to fix it by using the command:
sudo apt install --reinstall zip
and trying again, but you may have some corrupt system files.
Thatâs what I personally appreciate in a linux environment - it also provides documentation for itâs commands.
You just need to enter the command:
man *command*
which in your case is:
man zip
and you will see the manual page like ( just the first rows are included here ) :
ZIP(1) General Commands Manual ZIP(1)
NAME
zip - package and compress (archive) files
SYNOPSIS
zip [-aABcdDeEfFghjklLmoqrRSTuvVwXyz!@$] [--longoption ...] [-b path] [-n suffixes] [-t date] [-tt date] [zipfile [file ...]] [-xi list]
zipcloak (see separate man page)
zipnote (see separate man page)
zipsplit (see separate man page)
Note: Command line processing in zip has been changed to support long options and handle all options and arguments more consistently. Some old comâ
mand lines that depend on command line inconsistencies may no longer work.
DESCRIPTION
zip is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows 9x/NT/XP, Minix, Atari, Macintosh, Amiga, and Acorn RISC OS. It
is analogous to a combination of the Unix commands tar(1) and compress(1) and is compatible with PKZIP (Phil Katz's ZIP for MSDOS systems).