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.

What is the difference between moving a file to Trash and using the Terminal to rm it?

What is the idea behind the scenes?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Putting something in the trash effectively moves it to a system folder where it can be later retrieved.

When you rm something, you are deleting it. While the data is not wiped, reference to where the file is stored on the disk is deleted, and the space the file occupies is marked as available for use.

It is possible to get the file back after this, but far more difficult and the space the file occupied could easily be overwritten depending on free space and activity.

share|improve this answer
    
"from Lion onwards"? –  Daniel Beck Nov 25 '11 at 11:55
    
Ooops, yeah there was supposed to be some extra info there about the way Lion handles this, but it read like trash only works on lion :). Removed. –  Paul Nov 25 '11 at 12:12
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.