在 Debian 系统中,没有官方叫做 “recycle” 的软件包。你大概率是想问下面几种之一,我分别说明:
如果你已经安装:
一般路径:
~/.local/share/Trash/
无需额外安装。
提供 trash-put、trash-list、trash-restore 等命令。
sudo apt update
sudo apt install trash-cli
trash-put file.txt # 删除到回收站
trash-list # 查看回收站
trash-restore # 恢复文件
trash-empty # 清空回收站
echo "alias rm='trash-put'" >> ~/.bashrc
source ~/.bashrc
请提供:
例如:
git clone https://github.com/xxx/recycle.git
cd recycle
make && sudo make install
那不是 recycle,而是:
extundeletetestdiskphotorec需要的话我可以单独讲。
| 需求 | 推荐方案 |
|---|---|
| 桌面回收站 | 桌面环境自带 |
| 命令行回收站 | trash-cli |
| 文件恢复 | testdisk |
如果你能补充 “recycle” 你是从哪看到的(命令 / 教程 / 软件名),我可以给你精确安装步骤。