[ale] move?

hirsch at zapmedia.com hirsch at zapmedia.com
Wed Jan 23 12:55:49 EST 2002


Geoffrey writes:
 > I'm afraid I disagree.  I mv files from one disc to another all the time 
 > with mv.  Just did it.  mv foo from /home (/dev/hda1) to /top (/dev/hdb1).
 > 
 > Might you be getting hard links mixed up with moving a file?

Isn't that a unix/gnu thing?  I seem to recall that the mv in Solaris
couldn't do this.  I think this capability is peculiar to GNU
fileutils.

--Michael

 > 
 > Ken Nagorski wrote:
 > 
 > > Hi there, 
 > > 
 > > yes there is a mv command however, you cannot move stuff across different
 > > disks. lets say you have a mail spool and it got really big... You added a
 > > new drive and you you mounted it on /mnt so you could move the contents of
 > > /var to it cause you where going to reboot and mount this second drive as
 > > /var instead of it being off the / partition. OK. This said, mv will fail
 > > cause you can't mv across file systems. If this is the case tar will help
 > > 
 > > cd /var
 > > tar cvfp - .|(cd /mnt; tar xvf -)
 > > 
 > > Now you have copied the contents of /var across a file system.
 > > 
 > > Thanks
 > > Ken
 > > 
 > > 
 > > 
 > >>theres a copy command (cp) i know but is there a move
 > >>command? its just a combination of cp and rm but ...
 > >>is it there? or should i right a tiny bash script?
 > >>
 > >>__________________________________________________
 > >>Do You Yahoo!?
 > >>Send FREE video emails in Yahoo! Mail!
 > >>http://promo.yahoo.com/videomail/
 > >>
 > >>---
 > >>This message has been sent through the ALE general discussion list. See
 > >>http://www.ale.org/mailing-lists.shtml for more info. Problems should
 > >>be  sent to listmaster at ale dot org.
 > >>
 > > 
 > > 
 > > ----------------------------------------------
 > > But I don't want to go among mad people,
 > > Alice remarked.
 > > Oh, you can't help that, said the Cat:
 > > we're all mad here. I'm mad. You're mad.
 > > How do you know I'm mad? said Alice.
 > > You must be, said the Cat,
 > > or you wouldn't have come here.
 > > 
 > > 
 > > ---
 > > This message has been sent through the ALE general discussion list.
 > > See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
 > > sent to listmaster at ale dot org.
 > > 
 > > 
 > > 
 > 
 > 




---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list