Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Unzipping a file on Linux

Posted on 1999-07-15
Medium Priority
Last Modified: 2013-12-06
Hi friends,
       How do i unzip a file which has .zip extension on Linux.

Thanx inadvance,
Question by:madhusr
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

guiyu earned 100 total points
ID: 1635413
If you have the standard Red Hat distribution, simply use


if not download and install the unzip rpm from

1 log in as root
2 download the above file say, baichi.rpm
3 type
 rpm -ivh baichi.rpm --nodeps

and you have installed the unzip utility

To download the corresponding zip, utility, go to

and repeat the above process.


Expert Comment

ID: 1635414
A useful note is that if you want to unzip more than 1 file using wildcards, you must put quotation marks around the filename other wise the shell expands the wildcards and passes them on to unzip as seperate parameter.

to unzip all teh file in a directory, you would use

unzip "*zip"


Expert Comment

ID: 1635415
Good remark, syzygy.

Expert Comment

ID: 1635416
Also useful are the options (I think -uL) that compensate for MSDOS not being case sensitive and for it using CR/LF instead of a simple CR at the end of a line.  It will cause all outputted files to be all lowercase and will translate between CR/LF and CR on text files.

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question