Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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