Web Hosting Talk







View Full Version : Forceful Copy


andy18
11-05-2002, 02:55 PM
Hello,

I am working on SSH and was trying to copy some files from my other folder to one folder.

I type the following command :

cp -Rf /home/.... /home/abc/123

But it still keep prompting to ask my confirmation on whether to overwrite the files on /123 directory.I wish to directly overwrite the files without any confirmation.

Can some one tell me the command to do so?


Thanks.



Andy

davidb
11-05-2002, 02:59 PM
check your shell file, you prob have a forced -i or whatever the tag is in that command

Noldar
11-05-2002, 07:54 PM
Yeah, RedHat has an alias for cp that includes the -i. You can do a

unalias cp

to remove the alias or use the full path to cp.

/bin/cp

Richard