Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question

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.

up vote 3 down vote accepted

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.

share|improve this answer

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