title: How to use tar to archive files from different directories without directory structure
body: <p>I have several hundred to thousand files in different subdirectories which all reside in one parent directory, e.g.</p>
  
  <pre><code>/home/dir1/file1
  /home/dir2/file2
  /home/dir3/file3
  ...
  /home/dir10000/file10000
  </code></pre>
  
  <p>How can I use tar so my tar archive looks like this?</p>
  
  <pre><code>file1
  file2
  file3
  </code></pre>
  
  <p>I can ensure that the file names are unique. I do not want to include the original directory structure.</p>
  
  <p>Thanks for you help folks!</p>