You literally always need -f with -r in a script (unless you want rm to prompt the user), though...
mkdir demodir && touch demodir/{foo,bar} && rm -r demodirI could've sworn that -I was the default......
I feel it does more harm than good by normalising rm -f when you want to recursively delete a folder, but with CD deployments these days it's less of a deal.
To be fair though they were referring to CD deployment(s), plural, which is a bit redundant and just CD would have done just as well in this case.
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
I've also encountered one job which adds this to their base ubuntu image, and my current employer uses Macs which have it added to bashrc by their mdm software on initial install.So what's your justification to dismiss the idea that this is a common practice?
Thank you for the info, though.