tldr/pages/linux/trash.md

33 lines
556 B
Markdown
Raw Normal View History

# trash
> A CLI for managing your trashcan / recycling bin.
> More information: <https://github.com/andreafrancia/trash-cli>.
- Delete a file (send to trash):
`trash {{path/to/file}}`
- List files in trash:
`trash-list`
- Restore file from trash:
`trash-restore`
- Empty trash:
`trash-empty`
- Empty trash, keeping files trashed less than {{10}} days ago:
`trash-empty {{10}}`
2020-03-21 00:03:32 +03:00
- Remove all files named 'foo' from the trash:
`trash-rm foo`
- Remove all files with a given original location:
2020-05-28 12:57:32 +03:00
`trash-rm {{/absolute/path/to/file_or_directory}}`