2019-08-01 14:44:24 +01:00
|
|
|
# trash
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Manage the trashcan/recycling bin.
|
2019-08-01 14:44:24 +01:00
|
|
|
> 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:
|
2019-08-01 14:44:24 +01:00
|
|
|
|
|
|
|
`trash {{path/to/file}}`
|
|
|
|
|
2021-11-12 19:37:45 +00:00
|
|
|
- List all files in the trash:
|
2019-08-01 14:44:24 +01:00
|
|
|
|
|
|
|
`trash-list`
|
|
|
|
|
2021-11-12 19:37:45 +00:00
|
|
|
- Interactively restore a file from the trash:
|
2019-08-01 14:44:24 +01:00
|
|
|
|
|
|
|
`trash-restore`
|
|
|
|
|
2021-11-12 19:37:45 +00:00
|
|
|
- Empty the trash:
|
2019-08-01 14:44:24 +01:00
|
|
|
|
|
|
|
`trash-empty`
|
|
|
|
|
2022-05-04 18:12:15 +01:00
|
|
|
- Permanently delete all files in the trash which are older than 10 days:
|
2019-08-01 14:44:24 +01:00
|
|
|
|
|
|
|
`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}}`
|