Tar question

Charles Howse chowse at charter.net
Wed Sep 3 04:50:13 PDT 2003


> My suggestion is:
> 
> tar cvCfz /disk2 larry.tgz .
> 
> tar will cd to /disk2 before interpreting the dot - thus the 
> content of
> /disk2 will be archived, but without a leading "disk2" in the table of
> contents.

Perfect!  I saw the C argument in man tar, but didn't make the
connection.
Thanks very much!




More information about the freebsd-questions mailing list