From owner-freebsd-questions@FreeBSD.ORG Fri Mar 4 21:31:24 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 1DA4116A4CE for ; Fri, 4 Mar 2005 21:31:24 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D12C43D53 for ; Fri, 4 Mar 2005 21:31:23 +0000 (GMT) (envelope-from pergesu@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so811424wri for ; Fri, 04 Mar 2005 13:31:23 -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=j1HAIisJpkGua25C2eGwHBFbnKOlSiq8Zwvfjx50z+Qx4NTl9FvnzUmRUeEBOynZLgzp9/YPxI/gE4IhJ2eQyHmDgHhqFHXljHqYdTjQbarJ7lZGWzLSFekxdEqiXlvmI5OCDgeYR5aR9QVFOC2558gTL8bUFylrDqS4NAEfvYE= Received: by 10.54.62.3 with SMTP id k3mr43869wra; Fri, 04 Mar 2005 13:31:21 -0800 (PST) Received: by 10.54.42.28 with HTTP; Fri, 4 Mar 2005 13:31:20 -0800 (PST) Message-ID: <810a540e05030413315c850617@mail.gmail.com> Date: Fri, 4 Mar 2005 14:31:20 -0700 From: Pat Maddox To: Joachim Dagerot , FreeBSD Questions In-Reply-To: <810a540e05030413297e852b82@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200503042113.j24LD51s026558@mail-core.space2u.com> <810a540e05030413297e852b82@mail.gmail.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:31:24 -0000 Or even in one command... % mv /home/user/level1 /root/ On Fri, 4 Mar 2005 14:29:57 -0700, Pat Maddox wrote: > 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" > > >