tldr/pages/linux/trash.md

33 lines
630 B
Markdown
Raw Normal View History

# trash
2021-11-12 19:37:45 +00:00
> A CLI for managing the trashcan / recycling bin.
> More information: <https://github.com/andreafrancia/trash-cli>.
2021-11-12 19:37:45 +00:00
- Delete a file and send it to the trash:
`trash {{path/to/file}}`
2021-11-12 19:37:45 +00:00
- List all files in the trash:
`trash-list`
2021-11-12 19:37:45 +00:00
- Interactively restore a file from the trash:
`trash-restore`
2021-11-12 19:37:45 +00:00
- Empty the trash:
`trash-empty`
2021-11-12 19:37:45 +00:00
- Permanentely delete all files in the trash which are older than 10 days:
`trash-empty {{10}}`
2020-03-20 21:03:32 +00:00
2021-11-12 19:37:45 +00:00
- Remove all files in the trash, which match a specific blob pattern:
2020-03-20 21:03:32 +00:00
2021-11-12 19:37:45 +00:00
`trash-rm "{{*.o}}"`
2020-03-20 21:03:32 +00:00
2021-11-12 19:37:45 +00:00
- Remove all files with a specific original location:
2020-03-20 21:03:32 +00:00
2021-11-12 19:37:45 +00:00
`trash-rm {{/path/to/file_or_directory}}`