Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually, I think that the real great hack here is to alias the rm command to a trashbin script (as suggested at the end of the article)



The danger of aliasing the command itself (the bare 'rm') is that you come to count on the safety of the alias. Then you work one day on a friend's or coworker's machine and...BOOM.

What I do instead is make a nearby (and simple) alias. For example:

    rmi='rm -i'


This can be achieved using trash-cli




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: