Sudo apt-install unzip /zip not work

I tried use this command to install unzip & zip but it none work.

root@eupfile:~# sudo apt-get intall unzip
E: Invalid operation intall

I just try a lot of command, after its working correct. First you should answer:

  • - Do you run “apt-get update” periodically?
  • - Do you run “apt-get install” without a periodic “apt-get update”?
  • - Have you tried “apt-get upgrade”?
  • - Have you tried “apt-get dist-upgrade”?
  • - have you tried “apt-get -f install”?

Addition: Zipping and Unzipping Files under Linux

Q. Windows has winzip program what about Linux; I cannot find anything under Application menu. I am using Debian Linux distribution. How do I zip and unzip file under Linux?

A. Linux has both zip and unzip program. By default, these utilities not installed . To install them from shell prompt (open shell prompt by clicking on Application > System Tools > Terminal ). You must be a root user, Type following two commands to install zip and unzip program:

# apt-get install zip
# apt-get install unzip

If you are Red Hat Linux/Fedora user then you can use yum command to install zip and unzip program:

# yum install zip
# yum install unzip
  • zip is a compression and file packaging utility for Linux and Unix (including FreeBSD, Solaris etc).
  • unzip will list, test, or extract files from a ZIP archive files.

zip examples:
Creates the archive data.zip and puts all the files in the current directory in it in compressed form

$ zip data *

No need to add .zip extension or suffix as it is added automatically by zip command.

To zip up an entire directory (including all subdirectories), the command:

$  zip -r data *

unzip example:
To use unzip to extract all files of the archive pics.zip into the current directory & subdirectories:

$ unzip  pics.zip

You can also test pics.zip, printing only a summary message indicating whether the archive is OK or not:

$ unzip -tq pics.zip

To extract the file called cv.doc from pics.zip:

$ unzip pics.zip  cv.doc

To extract all files into the /tmp directory:

$ unzip pics.zip  -d /tmp

To list all files from pics.zip:

$ unzip -l pics.zip
GD Star Rating
loading...
GD Star Rating
loading...

Related Articles

Random Articles

Post a Comment