title: How to archive and extract a .tar.gz file
body: <p>A simple question. On x86 Solaris 10, I tried the following to compress a folder(Data) of files.</p>
  
  <pre><code>tar -cvf /path/to/Data/* | gzip &gt; /path/to/archive/Data.tar.gz
  </code></pre>
  
  <p>Now, I can list the file names and their sizes using:</p>
  
  <pre><code>gunzip -c Data.tar.gz
  </code></pre>
  
  <p>However, when I try to uncompress(for validation) Data.tar.gz:</p>
  
  <pre><code>gzip -d Data.tar.gz
  tar -xvf Data.tar
  </code></pre>
  
  <p>I get a "checksum error"</p>
  
  <p>Can someone please suggest the correct way to compress and extract files in Solaris 10. Thanks</p>