Very weird cp not accepting -f nor --force
It is incredible. Anyone have seen this before??? Any hint ???
TIA :( |
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? |
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 |
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.
|
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!! |
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. |