1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 13:42:07 +02:00
tldr/pages/linux/trash.md
2020-05-28 06:57:32 -03:00

32 lines
556 B
Markdown

# 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}}`
- Remove all files named 'foo' from the trash:
`trash-rm foo`
- Remove all files with a given original location:
`trash-rm {{/absolute/path/to/file_or_directory}}`