How can I make 'rm' move files to the trash can?
89
votes
8
answers
71170
views
I use the terminal on a daily basis, I will often use
rm DirectoryName
. Sometimes I get a little impatient and do rm *
without deliberating if it’s safe. As you can imagine, these shenanigans have sometimes come back and hit me in the face. Does anyone know how I create a mapping so rm whatever
moves everything to the trashcan which I then delete manually.
Asked by steve
(1393 rep)
Jul 18, 2011, 09:24 AM
Last activity: Jun 2, 2025, 08:16 PM
Last activity: Jun 2, 2025, 08:16 PM