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

Posted on

Problem :

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?

Solution :

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.

Leave a Reply

Your email address will not be published. Required fields are marked *