Linux – Two commands to move files to trash. What’s the difference

command linelinuxUbuntu

trash-cli provide a trash command, and gvfs-bin provides a gvfs-trash command that move files / directories to the trash can.

Is there an important difference between these two commands?

Best Answer

gvfs-trash is part of GNOME's Gvfs, while trash-cli is a separate set of tools independent of the desktop environment. Both programs implement the XDG Trash specification and should be compatible with each other. For example, you can trash files with gvfs-trash or GNOME Nautilus, then restore from trash-restore or KDE.