commands.sh

trash

linuxmacos

Manage the trashcan/recycling bin.

More info →

Examples (7)

Send a file to the trash

trash path/to/file

List all files in the trash

Interactively restore a file from the trash

Empty the trash

Permanently delete all files in the trash which are older than 10 days

Remove all files in the trash, which match a specific blob pattern

trash-rm "*.o"

Remove all files with a specific original location

trash-rm /path/to/file_or_directory
made by @shridhargupta | data from tldr-pages