Why does deleting from the command line take significantly less time than from a GUI?
Posted
by
Jordan Plahn
on Super User
See other posts from Super User
or by Jordan Plahn
Published on 2014-06-13T13:53:25Z
Indexed on
2014/06/13
15:28 UTC
Read the original article
Hit count: 218
linux
|command-line
So this is probably the dumbest question you'll read today, but it's something I just wondered about as I was deleting a dozen or so images from my computer. With a quick rm -rf command on the directory's contents, all the images were gone in a snap. When I drag the same dozen or so images to a trash can/recycle ban, it takes sometimes 10 seconds or more.
Now I'm sure some of it comes from the overhead of the GUI and such, and some of it may be the fact that the file still "exists" in some form if it's put into the recycle bin, but is there anything else that accounts for such a huge time disparity? Are "rm" and "delete" just such fundamentally different commands so I'm trying to compare apples and oranges?
Enlighten me, please!
© Super User or respective owner