mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 03:49:47 +00:00
Update cheatsheets
This commit is contained in:
37
linux/trash
Normal file
37
linux/trash
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user