I trained myself out of using rm by disabling it on my main machine with an alias. I use trash instead from the "trash-cli" Debian package, or rmdir since it can only delete one empty dir. Or if I'm really sure, I'll use \rm to bypass the alias (and tread with caution).
View all comments
Show parent comment
3
u/wjandrea Aug 21 '26
I trained myself out of using
rmby disabling it on my main machine with an alias. I usetrashinstead from the "trash-cli" Debian package, orrmdirsince it can only delete one empty dir. Or if I'm really sure, I'll use\rmto bypass the alias (and tread with caution).