Unzipping a file on Linux

Hi friends,
       How do i unzip a file which has .zip extension on Linux.

Thanx inadvance,
madhusr.
madhusrAsked:
Who is Participating?
 
guiyuConnect With a Mentor Commented:
If you have the standard Red Hat distribution, simply use

           unzip filename.zip

if not download and install the unzip rpm from

http://www.rpmfind.net/linux/RPM/UByName.htmlp

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

http://www.rpmfind.net/linux/RPM/ZByName.html

and repeat the above process.


0
 
syzygyCommented:
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"


0
 
guiyuCommented:
Good remark, syzygy.
0
 
awilkinsCommented:
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.
0
All Courses

From novice to tech pro — start learning today.