12

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?

1 Answer 1

17

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.

3
  • 1
    Very clear answer. In other words, the difference (in terms of their functionality) is nonexistent or minimal (in command line options). Commented Aug 16, 2011 at 23:39
  • Is the equivalent in KDE, ktrash? Commented Apr 24, 2016 at 10:23
  • 4
    Use gio trash filename instead, because as 2018 gvfs-trash is deprecated. Commented Jun 7, 2018 at 13:46

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.