From owner-freebsd-questions@FreeBSD.ORG Fri Mar 4 20:47:31 2005 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 DF03E16A4CE for ; Fri, 4 Mar 2005 20:47:31 +0000 (GMT) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA86943D1F for ; Fri, 4 Mar 2005 20:47:31 +0000 (GMT) (envelope-from list@mindling.com) Received: from webmail.sonic.net (b.webmail.sonic.net [64.142.100.148]) by a.mail.sonic.net (8.13.3/8.13.3) with ESMTP id j24KlVMp016331 for ; Fri, 4 Mar 2005 12:47:31 -0800 Received: from 64.142.107.68 (SquirrelMail authenticated user list) by webmail.sonic.net with HTTP; Fri, 4 Mar 2005 12:47:31 -0800 (PST) Message-ID: <19734.64.142.107.68.1109969251.squirrel@webmail.sonic.net> In-Reply-To: <200503042035.j24KZCMv023724@mail-core.space2u.com> References: <200503042035.j24KZCMv023724@mail-core.space2u.com> Date: Fri, 4 Mar 2005 12:47:31 -0800 (PST) From: "Sebastian" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: Moving a directory hierarchy - best practice? 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: Fri, 04 Mar 2005 20:47:32 -0000 > I have spent 20 minutes or so googling around to find the best way to > _move_ a complete directory hierarchy. But must admitt that I haven't > foundmany good answers. > > The best suggestion was from > http://badgertronics.com/knowledge/one.adp?parent=25: > > To move /tmp/blarg to /var: > % cd /tmp > % tar cvf - blarg | (cd /var; tar xf -) > > > I bet there must be atleast one utils like a binary named "mvdir" or > similar that simply taked two directory names as argument. But I can't > find any. > > How do you guys move around your directory structures from prompt? > > //J I use: Quick and dirty: $ mv /tmp/blarg /var/blarg If it's really important stuff: $ rsync -a /tmp/blarg /var/ $ rm -rf /tmp/blarg I'm interested to hear others' methods.