I try to pack a .csv file with tar.gz, while being in the root directory.
myfile.csv is located at
So the full filename is
I try to save the tar.gz under
I tried it like this:
tar -czf /mnt/sdb1/old_files/new.tar.gz mnt/sdb1/myfile.csv
But when i extract the file, then a folder with name "mnt" will be extracted which cointains another folder called "sdb1", which contains the file.
Is it possible to compress the file only, instead of copying all the directories?