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
Last activity: Apr 28, 2025, 04:12 PM