Breadcrumbs 
Learning >> Documentation >> Compression >> zip and rar
 
Recent News
We're No 1!
We've reached the top! (Of Google!)
[ more ]
Firefox 3 Download Day
Firefox 3 has been officially released and is looking to set a world record for the most downloaded piece of software in 24hrs.
[ more ]
SSL Renewed
SSL cert has been renewed by the admin team.
[ more ]
zip and rar
zip and rar

Although we've already dealt with the most common forms of compression, you may (rarely) encounter .zip and .rar files that you want to extract. These can be dealt with by the unzip and unrar commands.

Unzip unzips a zip file. Unrar uncompresses a .rar file.

# extract the contents of file.zip
$ unzip file.zip


# extract the contents of file.rar
$ unrar x file.rar

The 'x' character used in the unrar example tells unrar to extract (there are other actions available, see the manual page).

# the manual page for unzip
man unzip

# the manual page for unrar.
man unrar

And that's pretty much it for compressed files!