Super User is a question and answer site for computer enthusiasts and power users. 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

I had this very surprising situation recently, while trying to delete folders containing many files (think code repo checkout with some 10 thousands files):

  • When I tried to do this via command line as I normally would with rm -rf I waited for quite a while (say a minute?) without it finishing...

  • On the other hand, when deleting folders of the same size in nautilus file browser, the delete was instantaneous - and not only so in the GUI, but the folder was also gone in the FS, as a ls on the terminal showed me.

So how can this be? Doesn't nautilus just execute 'normal' rm? Or is it equipped with some way of dealing with large tasks in the background?

share|improve this question
up vote 2 down vote accepted

Nautilus "deletes" files by moving them to the trash, and moving a file on the same filesystem is a very fast operation. You forgot to add the time taken emptying the trash into your observation.

share|improve this answer
That was sort of obvious, now I feel stupid. :) – fgysin Oct 10 '13 at 13:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .