tldr/pages/linux/trash.md

33 lines
615 B
Markdown
Raw Normal View History

# trash
> Manage 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`
2022-05-04 18:12:15 +01:00
- Permanently 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}}`