LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Very weird cp not accepting -f nor --force (https://www.linuxquestions.org/questions/linux-software-2/very-weird-cp-not-accepting-f-nor-force-294921/)

latino 02-25-2005 06:59 PM

Very weird cp not accepting -f nor --force
 
It is incredible. Anyone have seen this before??? Any hint ???

TIA

:(

rose_bud4201 02-25-2005 08:12 PM

To where are you copying the file? Is the destination write-protected, or something like that?
Is it giving you any sort of feedback, or is the file simply not appearing?

latino 02-25-2005 08:44 PM

Hi:

It is not providing aby error message. Dirs are not write protected. It just ignores de -f or --force. It defaults to interactive and waits the answer if file will be overwrited...

Will try a reboot and see what happen.

Later

Matir 02-25-2005 09:25 PM

It's not getting -i as well, is it? Perhaps some bash startup script is aliasing cp to 'cp -i'. Some distros do that. Try 'alias' by itself and see if cp is listed.

latino 02-25-2005 09:44 PM

Yeah! Matir you found out the problem.

cp is defaulting to interactive since _alias shows:
cp = cp -i

My question now is, How to fix this? I am using RHEL 4

Thanks!!

Matir 02-25-2005 10:02 PM

Look in your ~/.bash_profile or ~/.bashrc first. Perhaps /etc/profile as well. There's probably an alias line somewhere in there. I'm glad I was able to narrow down the problem for you.


All times are GMT -5. The time now is 06:59 PM.