Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2003 06:57:35 -0500
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Xpression" <admin@atenas.cult.cu>, "FreeBSD-questions" <questions@freebsd.org>
Subject:   Re: tar question...
Message-ID:  <00a201c39edd$0ae6e150$1200a8c0@gsicomp.on.ca>
References:  <001501c39e99$dafacbc0$0801a8c0@bloodlust>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 .

--
Matt Emmerton



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00a201c39edd$0ae6e150$1200a8c0>