[RH List] how to copy a file , and ignore the prompt...
Ashley M. Kirchner
ashley at pcraft.com
Mon Jul 26 01:12:51 UTC 2004
On Sun, 25 Jul 2004, bruce wrote:
> a real basic question. how can i copy a file in linux so that i ginore/don't
> respond to the prompt???
>
> google/help/man pages indicate that cp without the "-i" should work. when i
> use:
>
> cp foo.dat foo1.dat
> i still get the prompt if foo1.dat exists.
That's because by default, .bashrc will alias 'cp -i' to 'cp' - so
you'd have to undo that before it works the way you want it to. Edit your
.bashrc file and get rid of the alias.
--
L | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley at pcraft.com> . 303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
More information about the redhat-list
mailing list