1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-09 17:26:00 +02:00

trash: refresh (#7388)

This commit is contained in:
marchersimon 2021-11-12 20:37:45 +01:00 committed by GitHub
parent 25274894de
commit ec9b5d98c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,32 +1,32 @@
# trash
> A CLI for managing your trashcan / recycling bin.
> A CLI for managing the trashcan / recycling bin.
> More information: <https://github.com/andreafrancia/trash-cli>.
- Delete a file (send to trash):
- Delete a file and send it to the trash:
`trash {{path/to/file}}`
- List files in trash:
- List all files in the trash:
`trash-list`
- Restore file from trash:
- Interactively restore a file from the trash:
`trash-restore`
- Empty trash:
- Empty the trash:
`trash-empty`
- Empty trash, keeping files trashed less than {{10}} days ago:
- Permanentely delete all files in the trash which are older than 10 days:
`trash-empty {{10}}`
- Remove all files named 'foo' from the trash:
- Remove all files in the trash, which match a specific blob pattern:
`trash-rm foo`
`trash-rm "{{*.o}}"`
- Remove all files with a given original location:
- Remove all files with a specific original location:
`trash-rm {{/absolute/path/to/file_or_directory}}`
`trash-rm {{/path/to/file_or_directory}}`