From owner-freebsd-questions@FreeBSD.ORG Thu Oct 30 05:35:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E90516A4CE for ; Thu, 30 Oct 2003 05:35:43 -0800 (PST) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5C0143FA3 for ; Thu, 30 Oct 2003 05:35:41 -0800 (PST) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.10/8.12.10) with ESMTP id h9UDaDHR009760; Thu, 30 Oct 2003 14:36:13 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.10/8.12.10/Submit) id h9UDaBZl009759; Thu, 30 Oct 2003 14:36:11 +0100 (CET) (envelope-from mail25@bzerk.org) X-Authentication-Warning: ei.bzerk.org: bulk set sender to mail25@bzerk.org using -f Date: Thu, 30 Oct 2003 14:36:11 +0100 From: Ruben de Groot To: Matthew Emmerton Message-ID: <20031030133611.GA9706@ei.bzerk.org> References: <001501c39e99$dafacbc0$0801a8c0@bloodlust> <00a201c39edd$0ae6e150$1200a8c0@gsicomp.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00a201c39edd$0ae6e150$1200a8c0@gsicomp.on.ca> User-Agent: Mutt/1.4.1i cc: Xpression cc: FreeBSD-questions Subject: Re: tar question... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 13:35:43 -0000 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"