tar question...

Ruben de Groot mail25 at bzerk.org
Thu Oct 30 05:35:43 PST 2003


On Thu, Oct 30, 2003 at 06:57:35AM -0500, Matthew Emmerton typed:
> > Hi list, the question is: can I tar a hole directory without include the
> > tree ??? I mean when I tar all files in a /dir1/dir2/dir3 path, the tar
> file
> > includes me the path too and I want to tar only the filenames in dir3: I'm
> > using the syntax tar -czf /path/to/store/myfile.tgz
> > /the/path/where/are/the/files, any clue ???? Thanksssss...
> 
> cd /the/path/where/are/the/files
> tar -czf /path/to/store/myfile.tgz .

Or in 1 command:

tar czf /path/to/store/myfile.tgz -C /the/path/where/are/the/files .

cheers
Ruben

> 
> --
> Matt Emmerton
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list