两个命令将文件移至回收站。有什么不同?


10

trash-cli提供trash命令,并gvfs-bin提供gvfs-trash将文件/目录移动到垃圾箱的命令。

这两个命令之间有重要区别吗?

Answers:


13

gvfs-trash是GNOME Gvfs的一部分,trash-cli是独立于桌面环境的独立工具集。这两个程序都实现了XDG 垃圾规范,并且应该彼此兼容。例如,您可以使用gvfs-trash或GNOME Nautilus删除文件,然后从trash-restore或KDE 恢复。


答案很明确。换句话说,差异(就其功能而言)不存在或很小(在命令行选项中)。
艾伦·图灵

等价于KDE ktrash吗?
CMCDragonkai

3
请改用giorash文件名,因为不建议使用2018 gvfs-trash。
Alejandro Silvestri,
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.