mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 03:51:29 +00:00
Update cheatsheets
This commit is contained in:
37
linux/trashy
Normal file
37
linux/trashy
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# trashy
|
||||
|
||||
> An alternative to `rm` and `trash-cli` written in Rust.
|
||||
> More information: <https://github.com/oberblastmeister/trashy>.
|
||||
|
||||
- Move a specific file to the trash:
|
||||
|
||||
`trash {{path/to/file}}`
|
||||
|
||||
- Move specific files to the trash:
|
||||
|
||||
`trash {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- List items in the trash:
|
||||
|
||||
`trash list`
|
||||
|
||||
- Restore a specific file from the trash:
|
||||
|
||||
`trash restore {{file}}`
|
||||
|
||||
- Remove a specific file from the trash:
|
||||
|
||||
`trash empty {{file}}`
|
||||
|
||||
- Restore all files from the trash:
|
||||
|
||||
`trash restore --all`
|
||||
|
||||
- Remove all files from the trash:
|
||||
|
||||
`trash empty --all`
|
||||
Reference in New Issue
Block a user