2018-05-16 13:05:48 +01:00
|
|
|
# trash-cli
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> A command-line interface to the trashcan APIs.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://github.com/andreafrancia/trash-cli>.
|
2018-05-16 13:05:48 +01:00
|
|
|
|
2022-12-08 06:58:13 +00:00
|
|
|
- Trash specific files and directories into the current trashcan:
|
2018-05-16 13:05:48 +01:00
|
|
|
|
2022-12-08 06:58:13 +00:00
|
|
|
`trash-put {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
2018-05-16 13:05:48 +01:00
|
|
|
|
2022-12-08 06:58:13 +00:00
|
|
|
- Remove specific files from the current trashcan:
|
|
|
|
|
|
|
|
`trash-rm {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
|
|
|
|
|
|
|
- Empty the current trashcan:
|
2018-05-16 13:05:48 +01:00
|
|
|
|
|
|
|
`trash-empty`
|
|
|
|
|
2022-12-08 06:58:13 +00:00
|
|
|
- List trashed files and directories in the current trashcan:
|
2018-05-16 13:05:48 +01:00
|
|
|
|
|
|
|
`trash-list`
|
|
|
|
|
2022-12-08 06:58:13 +00:00
|
|
|
- Restore a specific file or directory by a number from the displayed list from the current trashcan:
|
2018-05-16 13:05:48 +01:00
|
|
|
|
|
|
|
`trash-restore`
|