I would like to know if there is a command I can issue in a terminal so I do not classically remove (rm
) the file, but instead move it to trash (i.e. Nautilus Move to Trash behavior).
In case there is such a command, I would also be interested in knowing what it is.
Best Answer
You can use
gvfs-trash
command from the packagegvfs-bin
which is installed by default in Ubuntu.Move file to trash:
See the content of the trash:
Empty the trash: