This question already has an answer here:

I am using watchdog, a python package to monitor changes in the file system. The code works fine on Mac but it seems that the delete event is not monitored correctly in ubuntu. If I do a rm instead of move the file to trash, watchdog is able to detect the change. I am wondering whether there is a difference between moving to trash and rm command on the terminal in ubuntu that might lead to this behavior.
Thank you very much!

marked as duplicate by Glutanimate, Eric Carvalho, karel, Avinash Raj, Seth May 18 '14 at 17:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


In layman's terms,

rm unlinks the file.

"moving to trash" is something equivalent to mv file ~/.local/share/Trash in terminal, which means the file was moved from one directory to another directory.

P.S.: This question came up as the first result when I did a Google search for "ubuntu rm trash difference". I hope you can do some research next time before you ask.

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