snippetbashTip
trash — Manage the trashcan/recycling bin. More information: <https://github.com/andreafrancia/trash-cli>.
Viewed 0 times
thetrashcancommandrecyclingclimanagebintrash
linux
Problem
How to use the
trash command: Manage the trashcan/recycling bin. More information: <https://github.com/andreafrancia/trash-cli>.Solution
trash — Manage the trashcan/recycling bin. More information: <https://github.com/andreafrancia/trash-cli>.Send a file to the trash:
trash {{path/to/file}}List all files in the trash:
trash-listInteractively restore a file from the trash:
trash-restoreEmpty the trash:
trash-emptyPermanently delete all files in the trash which are older than 10 days:
trash-empty 10Remove 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}}Code Snippets
Send a file to the trash
trash {{path/to/file}}List all files in the trash
trash-listInteractively restore a file from the trash
trash-restoreEmpty the trash
trash-emptyPermanently delete all files in the trash which are older than 10 days
trash-empty 10Context
tldr-pages: linux/trash
Revisions (0)
No revisions yet.