Untarring compressed files on unix
-
Hi there,
Is there a way to add the initial slash when compressing files on windows. Ie, I want to compress some files on my c drive, and be able to extract them on unix, but the initial slash is never added - Is there a way to do this?
See my attachment for more clarification. I also know its possible by extracting the tar.gz file from the root, but I’d like to be able to extract it to the /fsd/… directory from anywhere.
Any help much appreciated.
-
Maybe search google? Not many people here use unix daily…
-
I’ve tried but no luck - I have a workaround where I untar and retar the files with the unix directory structure, but I was just wondering if PACL could do it for me and clean things up a bit.
Thanks anyway,
e. -
Have you tried extracting .tar.gz archive on Unix from / directory . This will extract file dir/test.c to /dir/test.c.
