Small command-line program for OS X that moves files or folders to the trash
open sourceMITself-hostablefree
trash is a small command-line program for macOS by Ali Rantakari that moves files or folders to the Trash instead of deleting them, so they can be recovered. By default it uses the low-level system API; with -F it asks Finder to do the trashing, so Finder's Put Back works. It is the program Homebrew's trash formula installs.
Ways to install
Package managers
Problems it solves
- rm deletes files forever and I want to move them to the Mac Trash from the terminal instead
- delete files in a script on macOS but still be able to recover them later
- trash files from the command line so Finder's Put Back still works
- a safer replacement for rm in my shell aliases on macOS
- empty-able deletes from the terminal that land in the same Trash as Finder
Features
- moves files and folders to the macOS Trash
- -F asks Finder to trash files so Put Back works
- man page
Capabilities
| Has a command line tool | plan not known |
|---|
