From owner-freebsd-questions@FreeBSD.ORG Wed Dec 22 02:44:26 2004 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 5FFBF16A4CE for ; Wed, 22 Dec 2004 02:44:26 +0000 (GMT) Received: from galilee.polands.org (CPE-24-208-53-189.new.rr.com [24.208.53.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8238943D1D for ; Wed, 22 Dec 2004 02:44:25 +0000 (GMT) (envelope-from djp@polands.org) Received: from jericho.polands.org (jericho.polands.org [172.16.1.35]) by galilee.polands.org (8.12.9/8.12.9) with ESMTP id iBM2iNRZ061699; Tue, 21 Dec 2004 20:44:24 -0600 (CST) (envelope-from djp@polands.org) Received: from jericho.polands.org (localhost [127.0.0.1]) by jericho.polands.org (8.13.1/8.13.1) with ESMTP id iBM2iN7p053454; Tue, 21 Dec 2004 20:44:23 -0600 (CST) (envelope-from djp@jericho.polands.org) Received: (from djp@localhost) by jericho.polands.org (8.13.1/8.13.1/Submit) id iBM2iNsL053453; Tue, 21 Dec 2004 20:44:23 -0600 (CST) (envelope-from djp) Date: Tue, 21 Dec 2004 20:44:23 -0600 From: Doug Poland To: Mike Jeays Message-ID: <20041222024420.GA53396@polands.org> References: <1103680952.33623.2.camel@chaucer> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1103680952.33623.2.camel@chaucer> User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Copying a directory hierarchy 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: Wed, 22 Dec 2004 02:44:26 -0000 On Tue, Dec 21, 2004 at 09:02:32PM -0500, Mike Jeays wrote: > How does on copy a complete directory hierarchy, including any hidden > files? > My personal favorite, from gtar (formerly tar) man page: To move file hierarchies, use a command line like this: tar -cf - -C srcdir . | tar xpf - -C destdir -- Regards, Doug