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.
Edit: This is not a duplicate of this question. There, the foxus is whether files removed using
rm in terminal can be restored -- I'm asking how to put files in the trash can instead of removing them.