I am attempting to tar 4 files that are in various locations on my server. the command I send currently is:
tar -czf myfile.tar.gz /mylocation/myfile.txt /file2/file2.txt
... and so on.
But when I extract that tar, it includes the directory structure and creates folders. How can I tar all 4 files into a .tar.gz to where when extracted it simply extract the 4 files individually?
thanks in advance!
tar -czf myfile.tar.gz /mylocation/myfile.txt /file2/file2.txt
... and so on.
But when I extract that tar, it includes the directory structure and creates folders. How can I tar all 4 files into a .tar.gz to where when extracted it simply extract the 4 files individually?
thanks in advance!