1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/trash.md

33 lines
597 B
Markdown
Raw Normal View History

# trash
> Manage the trashcan/recycling bin.
> More information: <https://github.com/andreafrancia/trash-cli>.
- Send a file to the trash:
`trash {{path/to/file}}`
2021-11-12 20:37:45 +01:00
- List all files in the trash:
`trash-list`
2021-11-12 20:37:45 +01:00
- Interactively restore a file from the trash:
`trash-restore`
2021-11-12 20:37:45 +01:00
- Empty the trash:
`trash-empty`
2022-05-04 17:12:15 +00:00
- Permanently delete all files in the trash which are older than 10 days:
`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}}`