2019-08-01 09:44:24 -04:00
|
|
|
# trash
|
|
|
|
|
2023-07-16 19:23:40 +02:00
|
|
|
> Manage the trashcan/recycling bin.
|
2019-08-01 09:44:24 -04:00
|
|
|
> More information: <https://github.com/andreafrancia/trash-cli>.
|
|
|
|
|
2024-09-08 18:52:11 +03:00
|
|
|
- Send a file to the trash:
|
2019-08-01 09:44:24 -04:00
|
|
|
|
|
|
|
`trash {{path/to/file}}`
|
|
|
|
|
2021-11-12 20:37:45 +01:00
|
|
|
- List all files in the trash:
|
2019-08-01 09:44:24 -04:00
|
|
|
|
|
|
|
`trash-list`
|
|
|
|
|
2021-11-12 20:37:45 +01:00
|
|
|
- Interactively restore a file from the trash:
|
2019-08-01 09:44:24 -04:00
|
|
|
|
|
|
|
`trash-restore`
|
|
|
|
|
2021-11-12 20:37:45 +01:00
|
|
|
- Empty the trash:
|
2019-08-01 09:44:24 -04:00
|
|
|
|
|
|
|
`trash-empty`
|
|
|
|
|
2022-05-04 17:12:15 +00:00
|
|
|
- Permanently delete all files in the trash which are older than 10 days:
|
2019-08-01 09:44:24 -04:00
|
|
|
|
2024-09-12 10:55:44 +02:00
|
|
|
`trash-empty 10`
|
2020-03-20 17:03:32 -04:00
|
|
|
|
2021-11-12 20:37:45 +01:00
|
|
|
- Remove all files in the trash, which match a specific blob pattern:
|
2020-03-20 17:03:32 -04:00
|
|
|
|
2021-11-12 20:37:45 +01:00
|
|
|
`trash-rm "{{*.o}}"`
|
2020-03-20 17:03:32 -04:00
|
|
|
|
2021-11-12 20:37:45 +01:00
|
|
|
- Remove all files with a specific original location:
|
2020-03-20 17:03:32 -04:00
|
|
|
|
2021-11-12 20:37:45 +01:00
|
|
|
`trash-rm {{/path/to/file_or_directory}}`
|