Files
tldr/pages.zh/linux/trash.md

32 lines
569 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 垃圾
> 管理垃圾桶/回收站。
> 更多信息:<https://github.com/andreafrancia/trash-cli>。
- 将文件发送到垃圾桶:
`trash {{path/to/file}}`
- 列出垃圾桶中的所有文件:
`trash-list`
- 交互式地从垃圾桶中恢复文件:
`trash-restore`
- 清空垃圾桶:
`trash-empty`
- 永久删除垃圾桶中所有超过10天的文件
`trash-empty 10`
- 删除垃圾桶中所有匹配特定模式的文件:
`trash-rm "{{*.o}}"`
- 删除所有具有特定原始位置的文件:
`trash-rm {{/path/to/file_or_directory}}`