trash
Manage the trashcan/recycling bin. tldr-pages
On Linux, macOS
Linux
Send a file to the trash
trash path/to/fileIdentifyList all files in the trash
trash-listIdentifyInteractively restore a file from the trash
trash-restoreIdentifyEmpty the trash
trash-emptyIdentifyPermanently delete all files in the trash which are older than 10 days
trash-empty 10IdentifyRemove all files in the trash, which match a specific glob pattern
trash-rm "*.o"IdentifyRemove all files with a specific original location
trash-rm /path/to/file_or_directoryIdentifymacOS
Move files and directories to the user trash folder.
Move a file to the trash
trash path/to/fileIdentifyMove multiple items or directories to the trash
trash path/to/file_or_directory1 path/to/file_or_directory2 ...IdentifyMove files to the trash with verbose output
trash --verbose path/to/file1 path/to/file2 ...IdentifyDisplay help
trash --helpIdentify