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?


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.

| improve this answer | |
  • Very clear answer. In other words, the difference (in terms of their functionality) is nonexistent or minimal (in command line options). – Alan Turing Aug 16 '11 at 23:39
  • Is the equivalent in KDE, ktrash? – CMCDragonkai Apr 24 '16 at 10:23
  • 3
    Use gio trash filename instead, because as 2018 gvfs-trash is deprecated. – Alejandro Silvestri Jun 7 '18 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.