Mac CLI trash command
Intro
Using rm
on the command line can cause grievances because the deletion is not reversible.
There the trash
command comes to aid. It uses the Finder’s “Trash” bin as the UI would.
Installation
It can be installed with
brew install trash
Details
“trash” is based on the work of Rantakari.
He describes details on this blog post.