I have a directory setup like the following:
folder_x
file.y
file.z
I would like to create a tar file so that when it's extracted the structure will look something like this:
dir_q/folder_x
dir_q/file.y
dir_q/file.z
How could I get this to work by using tar
? For reference, the current command that I'm using is:
tar -czf archive.tar.gz file.y file.z folder_x