From owner-freebsd-questions@FreeBSD.ORG Fri Mar 4 21:29:59 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 5066116A4CE for ; Fri, 4 Mar 2005 21:29:59 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id E498A43D1D for ; Fri, 4 Mar 2005 21:29:58 +0000 (GMT) (envelope-from pergesu@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so811128wri for ; Fri, 04 Mar 2005 13:29:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Vb+AV91YTHOe1FAXFF9pFRx5sKhdkfcB1ROOnnZ1D8V1402KgoZf/2K90tdFsUBrOL8chahXZaRcVIVVwcoilhkro7F5IeTHogzPiDOBC8W9OZDTLzMnrLb43Kaly+joEbqY+vBWsNGue1Ht1ys7uKZDUqqQvmMDINA0toSixOI= Received: by 10.54.8.67 with SMTP id 67mr25994wrh; Fri, 04 Mar 2005 13:29:58 -0800 (PST) Received: by 10.54.42.28 with HTTP; Fri, 4 Mar 2005 13:29:57 -0800 (PST) Message-ID: <810a540e05030413297e852b82@mail.gmail.com> Date: Fri, 4 Mar 2005 14:29:57 -0700 From: Pat Maddox To: Joachim Dagerot , FreeBSD Questions In-Reply-To: <200503042113.j24LD51s026558@mail-core.space2u.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200503042113.j24LD51s026558@mail-core.space2u.com> Subject: Re: Moving a directory hierarchy - best practice? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pat Maddox List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2005 21:29:59 -0000 What's wrong with a %mv /home/user/level1 / %mv /level1 /root On Fri, 4 Mar 2005 22:13:05 +0100, Joachim Dagerot wrote: > > Thanks for your suggestion. > > Unfortunately your commands will not affect the root folder of the hierarchy. I must create a directory in the destination path with the same name of the folder where my data is in. example: > > /home/user/level1/l2/l3/l4 > > I would like to move level1 to a new location: > > mvdir /home/user/level1 /root/ > > That would be awsome! > > > >> 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? > > > >I have used the following many times, with very good results: > > > > # cd /source/path > > # find . | cpio -p -dmvu /destination/dir > > _______________________________________________ > 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" >