tldr/pages/common/trash-cli.md

25 lines
639 B
Markdown
Raw Normal View History

2018-05-16 13:05:48 +01:00
# trash-cli
> A command-line interface to the trashcan APIs.
> More information: <https://github.com/andreafrancia/trash-cli>.
2018-05-16 13:05:48 +01:00
- Trash specific files and directories into the current trashcan:
2018-05-16 13:05:48 +01:00
`trash-put {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
2018-05-16 13:05:48 +01: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`
- List trashed files and directories in the current trashcan:
2018-05-16 13:05:48 +01:00
`trash-list`
- 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`