cp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  I have a new drive, I want to cp my windows instalation to it so I don't
have to get some one to read the setup screens to me to re setup windows.
Will cp or mv move the whole contense of my fat32 windows C:\> to another
drive including hidden/system/readonly/longfilenames/anything I forgot?
  Pete

  P.S.
  I would rather use the cp command rather than the mv command.

----- Original Message -----
From: "Gregory Nowak" <gnowak1@xxxxxxx>
To: <speakup at braille.uwo.ca>
Sent: Saturday, March 09, 2002 2:39 PM
Subject: Re: trplayer and realplayer


I do: "cp -a " /cdrom/mydir/ /tmp/otherdir/ and it recurses and works just
fine.
Greg


On Sat, Mar 09, 2002 at 01:05:44PM -0500, Charles Hallenbeck wrote:
> Igor -
>
> That would have worked fine if your source was not on a CD. The
> thing is, the MV command wants to erase the source after putting
> it somewhere else, and your CD is not erasable. You might want to
> use "cp" instead with a flag to make it recursive. Probably the
> flag would be -r but I would check first.
>
> Chuck
>
> On Sat, 9 Mar 2002, Igor Gueths wrote:
>
> > Hi Chuck. How do you mv it so that the directory doesn't get omitted? As
an example, I was trying to move an entire directory tree from Cd to hard
disk (/usr/src). My syntax was something like this: mv
/mnt/debian/dists/potato/main/disks-i386/source /usr/src. This should work
under Dos, but doesn't seem to work under Linux. Just to make sure, I added
a *.* before the /usr/src. In both cases, I get a message like: mv:
directory has been omitted. And it doesn't move anything. In this example,
I'm not saying that I am trying to do this, although I did try it before.
Basically, what would be the syntax to move a directory tree? Let's say I
created a tempdir for a tar archive and untarred it. And it created a dir in
/temp, therefore the tree would be /temp/package. Let's say I want to move
/package to /usr/local. Also, package has subdirs that I want to have moved
as well. What would be the syntax to move package to /usr/local and all
subdirs?
> > ----- Original Message -----
> > From: Charles Hallenbeck <hallenbeck at valstar.net>
> > To: <speakup at braille.uwo.ca>
> > Sent: Saturday, March 09, 2002 9:47 AM
> > Subject: Re: trplayer and realplayer
> >
> >
> > > Hi Igor -
> > >
> > > I have had that problem too. On my Slackware system the "less"
> > > command is installed in such a way that it automatically shows
> > > the files contained in a tar archive. The first file listed will
> > > be a directory if the  archive will be one that creates its own
> > > directory.
> > >
> > > If your "less" will not do that, you can always create a
> > > temporary directory and untar the thing in there. If it does
> > > create its own directory under your temporary one, you can just
> > > "mv" the thing to where you want it.
> > >
> > > HTH - Chuck
> > >
> > >
> > >
> > > Visit me at http://www.valstar.net/~hallenbeck
> > > The Moon is Waning Crescent (17% of Full)
> > >
> > >
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup at braille.uwo.ca
> > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> Visit me at http://www.valstar.net/~hallenbeck
> The Moon is Waning Crescent (16% of Full)
>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

_______________________________________________
Speakup mailing list
Speakup at braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup






[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux