Linux下设置回收站可参考以下方法:
sudo apt-get install trash-cli
。trash /path/to/file
,清空回收站用trash-empty
,恢复文件用trash-restore /path/to/file
。~/.config/trashrc
文件中自定义路径等设置,如[Trash]
path=/custom/trash/path
。.trash
或.local/share/Trash
等隐藏目录。.bashrc
文件,添加如alias rm='mv -t ~/.trash --backup=numbered'
,然后source ~/.bashrc
。~/.local/share/Trash/files/
,可在“设置”→“存储”中配置回收站。~/.local/share/Trash/
,通过“系统设置”→“存储管理器”配置。