When I compress a tar gz file using paths, folders get included : <p>When I compress a tar gz file using paths, folders get included. However, I want to just compress the file only. This is what I tried:</p>

<pre><code>$ tar -czf ../coolfile.tar.gz newfol/coolfile
</code></pre>

<p>When I uncompress this tar.gz, I get the <code>coolfile</code> file in newfol folder. I would like compress <code>coolfile</code> only. </p>

<p>Uncompress tar gz command:</p>

<pre><code>$ tar -xvf coolfile.tar.gz`
</code></pre>
