3 ms·
> Actually even if you do rm -f, the -i will still be added if it is an alias. Yes, I know, but rm ignores -i if -f is given. [root@example ~]# touch blah
by Ao7bei3s 11y ago
> Actually even if you do rm -f, the -i will still be added if it is an alias.
Yes, I know, but rm ignores -i if -f is given.
[root@example ~]# touch blah
[root@example ~]# rm -i -f blah
[root@example ~]#
And hence:
[root@example ~]# which rm
alias rm='rm -i'
/usr/bin/rm
[root@example ~]# touch blah
[root@example ~]# rm -f blah
[root@example ~]#
@type: yes, you're right, thanks for the reminder.