9
1
I'm using this command to archive a directory named g
from Java code:
tar czf /a/b/c.tar.gz /e/f/g
When the tar file c.tar.gz
is created, I find an entire path e/f/g
then all files of the g
folder inside it. But I only want to see files under the folder g
in the compressed archive when I open it. How do I remove the folders /e/f/
in the .tar.gz file?