Re: [RH List] how to copy a file , and ignore the prompt...

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

 



If you don't want to unalias cp, try:
cp -f foo.dat foo1.dat

Ashley M. Kirchner wrote:

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.






--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux