Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2005 14:29:57 -0700
From:      Pat Maddox <pergesu@gmail.com>
To:        Joachim Dagerot <jd@dagerot.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Moving a directory hierarchy - best practice?
Message-ID:  <810a540e05030413297e852b82@mail.gmail.com>
In-Reply-To: <200503042113.j24LD51s026558@mail-core.space2u.com>
References:  <200503042113.j24LD51s026558@mail-core.space2u.com>

next in thread | previous in thread | raw e-mail | index | archive | help
What's wrong with a 
%mv /home/user/level1 /
%mv /level1 /root


On Fri, 4 Mar 2005 22:13:05 +0100, Joachim Dagerot <jd@dagerot.com> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?810a540e05030413297e852b82>