nih-gov/www.ncbi.nlm.nih.gov/Ftp/uncompress.html

407 lines
No EOL
16 KiB
HTML

<html>
<head>
<title>Uncompress gz and Z files</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="National Center for Biotechnology Information, NCBI, ftp, GenBank, gzip compression utility, Unix compress utility, pkunzip and comp430d.zip, MacCompress, Compression Newsgroup FAQs">
<META NAME="description" CONTENT="Instructions on how to uncompress *.gz and *.Z files.">
<link rel="stylesheet" href="../ncbi.css">
</head>
<a NAME="Top"></a>
<body bgcolor="#FFFFFF" background="/corehtml/bkgd.gif" text="#000000" link="#000099" vlink="#6666CC">
<span class="TEXT"> <!-- the header -->
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr>
<td width="140"><a href="http://www.ncbi.nlm.nih.gov"><img src="/corehtml/left.GIF" width="130" height="45" border="0" ALT="NCBI logo"></a></td>
<td width="460" class="head1" valign="BOTTOM"><span class="H1">FTP site</span></td>
</tr>
</table>
<!-- the quicklinks bar-->
<table border="0" width="602" cellspacing="0" cellpadding="1"
bgcolor="#003366">
<tr align="center">
<td width="86"><a href="/entrez/query.fcgi?db=PubMed" class="BAR"><FONT
COLOR="#FFFFFF">PubMed</FONT></a></td>
<td width="86"><a href="/Entrez/" class="BAR"><FONT
COLOR="#FFFFFF">Entrez</FONT></a></td>
<td width="86"><a href="/BLAST/" class="BAR"><FONT
COLOR="#FFFFFF">BLAST</FONT></a></td>
<td width="86"><a href="/entrez/query.fcgi?db=OMIM" class="BAR"><FONT
COLOR="#FFFFFF">OMIM</FONT></a></td>
<td width="86"><a href="/entrez/query.fcgi?db=books" class="BAR"><FONT
COLOR="#FFFFFF">Books</FONT></a></td>
<td width="86"><a href="/Taxonomy/taxonomyhome.html" class="BAR"><FONT
COLOR="#FFFFFF">TaxBrowser</FONT></a></td>
<td width="86"><a href="/Structure/" class="BAR"><FONT
COLOR="#FFFFFF">Structure</FONT></a></td>
</tr>
<!-- the search bar-->
<tr>
<td colspan="7">
<table border="0" width="602" cellspacing="0" cellpadding="2" bgcolor="#CCCCFF">
<form method="post" action="/genome/guide/gquery.cgi">
<tr>
<td class="TEXT"> &nbsp;&nbsp;Search <small>
<select name="db">
<option value="0">PubMed</option>
<option value="1">Protein</option>
<option value="2" selected>Nucleotide</option>
<option value="3">Structure</option>
<option value="4">Genome</option>
<option value="104">LocusLink</option>
<option value="5">PopSet</option>
<option value="100">OMIM</option>
<option value="7">Taxonomy</option>
<option value="8">Books</option>
<option value="9">ProbeSet</option>
<option value="10">3D Domains</option>
<option value="12">UniSTS</option>
</select>
</small> for
<input type="text" name="term" size="24">
<input type="submit" name="submit" value="Go">
</td>
</tr>
</form>
</table>
</TD></TR></TABLE>
<!-- the contents -->
<table border="0" width="600" cellspacing="0" cellpadding="0">
<tr valign="TOP"> <!-- left column -->
<td width="125">
<BR><BR>
<table border="0" width="125" cellspacing="0" cellpadding="0"><tr valign="bottom"><td width="120"><a href="http://www.ncbi.nlm.nih.gov/" class="HELPBAR"><FONT COLOR="#FFFFFF">NCBI</FONT> </a><br></td><td width="8" align="right"><img src="../Gifs/GoUp1.gif" width="8" height="19" border="0" ALT="back to NCBI homepage"></td></tr><tr align="right"><td colspan="2"><img src="../Gifs/GoUp2.gif" width="125" height="12" border="0" ALT="back to NCBI homepage"></td></tr></table>
<span class="HELPBAR"><a href="/Sitemap/index.html" class="HELPBAR"><FONT COLOR="#ffcc66">SITE MAP</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF">Guide to NCBI resources</FONT></A><BR><BR><BR>
<span class="GUTTER1"><a href="/About/index.html" class="GUTTER1"><FONT COLOR="#ffcc66">About NCBI</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">The science behind our resources. An introduction for researchers, educators and the public.</FONT></a><BR><BR>
<span class="GUTTER1"><a href="/Genbank/index.html" class="GUTTER1"><FONT COLOR="#ffcc66">GenBank</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">sequence submission support and software</FONT></a><BR><BR>
<span class="GUTTER1"><a href="/Database/index.html" class="GUTTER1"><FONT COLOR="#ffcc66">Molecular
databases</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">sequences, structures and taxonomy</FONT></a><BR><BR>
<span class="GUTTER1"><a href="/Literature/index.html" class="GUTTER1"><FONT COLOR="#ffcc66">Literature databases</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">PubMed and OMIM</FONT></a><BR><BR>
<span class="GUTTER1"><a href="/Genomes/index.html" class="GUTTER1"><FONT COLOR="#ffcc66">Genomic Biology</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">the human genome, whole genomes and related resources</FONT></a><BR><BR>
<span class="GUTTER1"><a href="/Tools/index.html" class="GUTTER1"><FONT COLOR="#ffcc66">Tools</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">for data mining</FONT></a><BR><BR>
<span class="GUTTER1"><a href="/CBBresearch/" class="GUTTER1"><FONT COLOR="#ffcc66">Research at NCBI</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">people, projects, and seminars</FONT></a><BR><BR>
<SPAN class="GUTTER1"><a href="/IEB/" class="GUTTER1"><FONT COLOR="#ffcc66">Software engineering</FONT><BR></SPAN>
<SPAN class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">Tools, R&amp;D and databases</FONT></a><BR><BR></SPAN>
<span class="GUTTER1"><a href="/Education/index.html"
class="GUTTER1"><FONT COLOR="#ffcc66">Education</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">teaching resources and on-line tutorials</FONT></a><BR><BR>
<span class="GUTTER1"><a href="/Ftp/index.html"
class="GUTTER1"><FONT COLOR="#ffcc66">FTP site</FONT><BR>
<span class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">download data and software</FONT></a><BR><BR>
<SPAN class="GUTTER1"><a href="http://ncbi.nlm.nih.gov/About/glance/contact_info.html" class="GUTTER1"><FONT COLOR="#ffcc66">Contact information</FONT><BR></SPAN>
<SPAN class="GUTTER2"><FONT COLOR="#FFFFFF" SIZE="-1">how to reach us</FONT></a><BR><BR></SPAN>
</td>
<!-- extra column to force things over the gif border -->
<td width="15"> </td>
<!-- right content column -->
<td width="460" CLASS="TEXT">
<BR>
<p>
<h2>How to uncompress *.gz and *.Z files</h2>
<!-- ==================== CONTENTS ===================== -->
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" BGCOLOR="#FFFFFF">
<tr>
<td>
Files available from the NCBI anonymous FTP site have been compressed using
the <b>"gzip" program</b> (and have the extension <b>*.gz</b>), or the <b>UNIX "compress" program</b> (and have the extension <b>*.Z</b>). This document describes how both file types can be uncompressed.
<ol>
<li><a href="#gz">uncompress *.gz files</a>
<li><a href="#Z">uncompress *.Z files</a>
<ol>
<li><a href="#unix">UNIX</a>
<li><a href="#pc">PC</a>
<li><a href="#mac">MAC</a>
</ol>
<li><a href="#compression_newsgroup">compression newsgroup FAQs</a>
</ol>
</td>
</tr>
</table>
</p>
<!-- ==================== END_CONTENTS ===================== -->
<!-- ======================= gz_FILES ======================== -->
<a NAME="gz"></a>
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" >
<tr>
<td WIDTH="440" BGCOLOR="#CCCCFF" class="H3"><img src="http://www.ncbi.nlm.nih.gov/corehtml/bluebullet.gif" width="16" height="14" border="0">Uncompress *.gz files</td>
<td WIDTH="20" BGCOLOR="#CCCCFF" VALIGN="top">
<a href="#Top"><img SRC="arrowup.gif" border="0" width="14" height="14" ALT="back to top"></a></td>
</tr>
</table>
</p>
<!-- ------------- END_BLUE_HEADER ---------------- -->
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" BGCOLOR="#FFFFFF">
<tr>
<td>
As announced via the GenBank newsgroup on June 15, 2000, NCBI now uses the
<b>gzip compression utility</b> instead of the Unix "compress" utility for all
GenBank files, starting with GenBank Release 119.0.</p>
Comparisons of gzip to compress for simplistic sequence data (e.g., EST, GSS, STS) yielded an additional 50% reduction in the size of a compressed file. Given that ESTs and GSS sequences comprise a huge portion of the
GenBank data NCBI distributes, switching to gzip saves a great deal
of disk space, and reduces the amount of bandwidth utilized by those who
ftp GenBank files.</p>
As a result of the switch to gzip, file naming conventions have changed.
The suffix of compressed GenBank data files was previously ".Z" . After the
switch, the suffix became ".gz" .</p>
The gzip utility is used to compress various other data on the ftp site as well.</p>
If you are unsure about the availability of gzip for your platform, please
contact your system administrator. If you find that the utility is not
installed, <b>one possible place for obtaining gzip is</b>:</p>
<SPACER TYPE=horizontal SIZE="50"><b><a href="http://www.gnu.org/software/gzip/gzip.html">http://www.gnu.org/software/gzip/gzip.html</a></b>
</p>
</td>
</tr>
</table>
</p>
<!-- ======================= END_gz_FILES ====================== -->
<!-- ======================= Z_FILES ======================== -->
<a NAME="Z"></a>
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" >
<tr>
<td WIDTH="440" BGCOLOR="#CCCCFF" class="H3"><img src="http://www.ncbi.nlm.nih.gov/corehtml/bluebullet.gif" width="16" height="14" border="0">Uncompress *.Z files</td>
<td WIDTH="20" BGCOLOR="#CCCCFF" VALIGN="top">
<a href="#Top"><img SRC="arrowup.gif" border="0" width="14" height="14" ALT="back to top"></a></td>
</tr>
</table>
</p>
<!-- ------------- END_BLUE_HEADER ---------------- -->
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" BGCOLOR="#FFFFFF">
<tr>
<td>
Files with a *.Z extension have been compressed by the <b>UNIX "compress" program</b>. Those files can be handled with the <b><a href="#unix">Unix</a> "uncompress" program</b>, or programs such as the <a href="#pc">PC</a> and <a href="#mac">Mac</a> utilities described below. </p>
</td>
</tr>
</table>
</p>
<!-- ======================= END_Z_FILES ====================== -->
<!-- ======================= UNIX ======================== -->
<a NAME="unix"></a>
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="400" >
<tr>
<td WIDTH="380" BGCOLOR="#FFFFCC" class="H3">UNIX</td>
<td WIDTH="20" BGCOLOR="#FFFFCC" VALIGN="top">
<a href="#Top"><img SRC="arrowup.gif" border="0" width="14" height="14" ALT="back to top"></a></td>
</tr>
</table>
</p>
<!-- ------------- END_BLUE_HEADER ---------------- -->
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" BGCOLOR="#FFFFFF">
<tr>
<td>
If you are using a UNIX workstation, use the <b>uncompress</b> program to expand the files to their original state.</p>
</td>
</tr>
</table>
</p>
<!-- ======================= END_UNIX ====================== -->
<!-- ======================= PC ======================== -->
<a NAME="pc"></a>
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="400" >
<tr>
<td WIDTH="380" BGCOLOR="#FFFFCC" class="H3">PC</td>
<td WIDTH="20" BGCOLOR="#FFFFCC" VALIGN="top">
<a href="#Top"><img SRC="arrowup.gif" border="0" width="14" height="14" ALT="back to top"></a></td>
</tr>
</table>
</p>
<!-- ------------- END_BLUE_HEADER ---------------- -->
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" BGCOLOR="#FFFFFF">
<tr>
<td>
If you are using a PC, you will need two programs
(pkunzip & comp430d.zip) in order to uncompress a *.Z file.</p>
If you do not already have the pkunzip program on your PC,
please contact your systems administrator to obtain it,
or search the Net to find a Web site from which you can
download that program.</p>
The "comp430d.zip" freeware program is available from
the "pub/dab" directory the NCBI anonymous FTP site
(<a href="ftp://ftp.ncbi.nih.gov/pub/dab/">ftp://ftp.ncbi.nih.gov/pub/dab/</a>). It allows you to decompresses Unix ".Z" files under DOS. </p>
Once you download the "comp430d.zip" file, follow these steps:</p>
<ol>
<li>Run the "pkunzip" program to unzip "comp430d.zip."<br>
Use the command:<br>
pkunzip -d comp430d.zip </p>
<li>Rename the "comp430d.exe" file to "compress.exe" with the
following command: <br>
ren comp430d.exe compress.exe </p>
<li>Copy the "compress.exe" to "uncomp.exe" using the following command:<br>
copy compress.exe uncomp.exe </p>
<li>run the uncompress program: <br>
uncomp.exe <filename> <br>
E.g., uncomp.exe omim.txt.Z </p>
Or, you can leave off the ".exe" portion and simply type the command:<br>
uncomp <filename> <br>
E.g., uncomp omim.txt.Z
</ol>
</td>
</tr>
</table>
</p>
<!-- ======================= END_PC ====================== -->
<!-- ======================= MAC ======================== -->
<a NAME="mac"></a>
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="400" >
<tr>
<td WIDTH="380" BGCOLOR="#FFFFCC" class="H3">MAC</td>
<td WIDTH="20" BGCOLOR="#FFFFCC" VALIGN="top">
<a href="#Top"><img SRC="arrowup.gif" border="0" width="14" height="14" ALT="back to top"></a></td>
</tr>
</table>
</p>
<!-- ------------- END_BLUE_HEADER ---------------- -->
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" BGCOLOR="#FFFFFF">
<tr>
<td>
If you are using a Mac, you can search the Web to find sites
that have a program such as "MacCompress," which handles files that
have been prepared with the Unix compress program.</p>
One example web site that provides information about various Mac compression/uncompression programs is:
<ul><li>MIT Laboratory for Computer Science, Mirror site of the Info-Mac Archive <br>
<a href="http://hyperarchive.lcs.mit.edu/HyperArchive.html">http://hyperarchive.lcs.mit.edu/HyperArchive.html</a> </p>
</ul>
A search of the web for terms such as "Mac" and "compress" will find other sites as well.</p>
The Apple home page (<a href="http://www.apple.com/">http://www.apple.com/</a>) and the Apple Support page (<a href="http://www.apple.com/support/">http://www.apple.com/support/</a>) might also provide information about compression and uncompression of various file types on the Mac.</p>
</td>
</tr>
</table>
</p>
<!-- ============================= END_MAC ============================ -->
<!-- ================ COMPRESSION_NEWSGROUP_FAQS ============= -->
<a NAME="compression_newsgroup"></a>
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" >
<tr>
<td WIDTH="440" BGCOLOR="#CCCCFF" class="H3"><img src="http://www.ncbi.nlm.nih.gov/corehtml/bluebullet.gif" width="16" height="14" border="0">Compression Newsgroup FAQs</td>
<td WIDTH="20" BGCOLOR="#CCCCFF" VALIGN="top">
<a href="#Top"><img SRC="arrowup.gif" border="0" width="14" height="14" ALT="back to top"></a></td>
</tr>
</table>
</p>
<!-- ------------- END_BLUE_HEADER ---------------- -->
<table BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="460" BGCOLOR="#FFFFFF">
<tr>
<td>
You can find additional information about compression/uncompression utilities on the Compression Newsgroup. They provide an archive of Frequently Asked Questions (FAQs) at:</p>
<SPACER TYPE=horizontal SIZE="50"><a href="http://www.faqs.org/faqs/compression-faq/">http://www.faqs.org/faqs/compression-faq/</a></p>
You might also search the web to find sites that provide compression/uncompression software for various platforms.
</td>
</tr>
</table>
</p>
<!-- =========== END_COMPRESSION_NEWSGROUP_FAQS ============ -->
<p><i><FONT size="2">Revised June 3, 2002</FONT></i><br>
</td>
</tr>
</table>
<!-- end of content --> <!-- bottom of the page -->
</span>
</body>
</html>