Skip to main content
10 events
when toggle format what by license comment
Apr 19, 2023 at 18:57 comment added Jason Hemann the rmtrash recipe is no longer on brew. I suggest the trash utility instead.
Nov 17, 2022 at 20:21 comment added Caleb @Brian You are welcome to alias rm=ul if you prefer to be pedantic. I understand what happens at the file system level and at least some of the physics of spinning rust (not so much some of the newer mediums), and know that rm doesn't scrub the bits. But for an end user with a habit of getting crazy with rm (remove) I think the correct answer is to tell them to stop using the remove command if they want a trash bucket to easily recover stuff out of.
Nov 15, 2022 at 17:33 comment added Brian " rm by definition removes a file from the disk." No. rm unlinks the file. It does not remove it.
Feb 16, 2015 at 17:56 comment added Sheharyar This is an awesome answer, cleared up a few things for me. I'll try to form a habit of using rmtrash instead of rm.
Jun 26, 2014 at 16:50 history edited Caleb CC BY-SA 3.0
added 1 character in body
Feb 5, 2014 at 20:16 comment added GabLeRoux brew install rmtrash and stop using rm
Jul 21, 2011 at 11:20 history edited Caleb CC BY-SA 3.0
added 361 characters in body
Jul 21, 2011 at 11:13 comment added Caleb @steve you missed the point entirely. rm by definition removes a file from the disk. It doesn't send it to the trash. Teaching yourself to use rm when you mean send to trash sets you up for disaster. If you want to send to trash, use rmtrash or a program that was designed for the job, then you won't run into nightmares later. I wasn't saying using the trash is inherently wrong, but if you want to use it, don't wire it up to something that was not intended to use it!
Jul 21, 2011 at 11:11 comment added steve Your point doesn't compute in this instance. People delete things accidentally on a daily basis, system backups do not work in the case of a home pc (which mine is) as the resources are limited, a move to trash can is a far more efficient way of handling these deletions for my particular use case.
Jul 18, 2011 at 9:34 history answered Caleb CC BY-SA 3.0