title: how to tar a directory without parent directory
body: <p>I want to compress the contents of:</p>
  
  <pre><code>/ebs1/xxx/aaa/bbb/
  </code></pre>
  
  <p>So, all the files and folders inside "bbb" I want to be compressed to a file named "xxx.tar.gz" I am using:</p>
  
  <pre><code>tar -zcvf "xxx.tar.gz" "/ebs1/xxx/aaa/bbb/"
  </code></pre>
  
  <p>It's ok. But when I open the file "xxx.tar.gz" the tree directories start at</p>
  
  <pre><code>/ebs1 -&gt; /xxx -&gt; /aaa -&gt; /bbb -&gt;
  </code></pre>
  
  <p>and after this I can see the content.</p>
  
  <p>Is it possible to tell tar not to include the parent directories in the compressed files, so when I extract it I dont need to open all directories to get to my content?</p>