I'm creating zipfiles like so:
tar czf /[path_to_archive]/archive.tar.gz /[full_path]/file1 /[full_path]/file2 etc...
When I go to decompress/extract these files later, I find that the original directory structure was included in the archive. Is there a way to prevent it from storing the path from it's origin?
Note: I asked this same question somewhere else, and was told that, upon extraction, I should simply tell WinZip to ignore the structure in the archive. I'm more concerned with preventing the directory structure of my box from appearing in the archive in the first place.
So, what can I do here?
tar czf /[path_to_archive]/archive.tar.gz /[full_path]/file1 /[full_path]/file2 etc...
When I go to decompress/extract these files later, I find that the original directory structure was included in the archive. Is there a way to prevent it from storing the path from it's origin?
Note: I asked this same question somewhere else, and was told that, upon extraction, I should simply tell WinZip to ignore the structure in the archive. I'm more concerned with preventing the directory structure of my box from appearing in the archive in the first place.
So, what can I do here?