, [tcsh]:
alias clean '\rm -i -- "#"* *~'
alias rmo 'rm -- *.o'
, * .o. , , ...
But it could have been worse. Back in the early 90s, my friend had a ~ / etc directory . He wanted to remove it. Unfortunately, he got the rm -rf / etc . Unfortunately, it was registered as root. He had a bad day!
To be evil: Touch - '-rf *'
To be safe, use '-' and -i . Or do it right and create an alias!
source
share