1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:22:07 +02:00
tldr/pages/linux/trash.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

615 B

trash

Manage the trashcan/recycling bin. More information: https://github.com/andreafrancia/trash-cli.

  • Delete a file and send it to the trash:

trash {{path/to/file}}

  • List all files in the trash:

trash-list

  • Interactively restore a file from the trash:

trash-restore

  • Empty the trash:

trash-empty

  • Permanently delete all files in the trash which are older than 10 days:

trash-empty {{10}}

  • Remove all files in the trash, which match a specific blob pattern:

trash-rm "{{*.o}}"

  • Remove all files with a specific original location:

trash-rm {{/path/to/file_or_directory}}