Sample Header Ad - 728x90

cp -f cannot overwrite cp -i alias

8 votes
2 answers
7304 views
In my /home/user/.bashrc file, I have those aliases to prevent mistakes: alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' If I'm really sure of what I'm doing, I can overwrite rm and mv aliases using rm -f or mv -f, it will not ask me if I really want to overwrite files. The problem, is that it doesn't work for the cp command, using cp -f will still ask me a question. Is this normal? What should I do in order to have cp -i alias by default and be able to use cp -f command too? I'm using Debian Wheezy 64bit.
Asked by baptx (287 rep)
Dec 3, 2012, 12:18 PM
Last activity: Apr 28, 2025, 04:12 PM