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 > > _______________________________________________ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"