LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Removing directory path from tar archives (http://www.linuxquestions.org/questions/linux-software-2/removing-directory-path-from-tar-archives-404888/)

haddad 01-18-2006 07:58 AM

Removing directory path from tar archives
 
Hi,

if I do

tar -zcf file.tar.gz /some/path/to/dir

the tar (gz) file created has the whole path "/some/path/to/dir" in it, I want the archive to have "dir" only, how can I do this?

Thanks

haddad 01-18-2006 08:02 AM

Sorry, found the answer.


All times are GMT -5. The time now is 01:48 PM.