I use rm -rf mydir to delete some large directories from my linux.
It takes forever!
Is there anyway to speed things up?
feedback
|
|
Stackoverflow question of interest has some good tricks, And, what is a 'large directory' here? Based on what you are deleting you may also want to lookup | |||
feedback
|
|
To answer your question: it takes a long time when there are many files (and/or directories, which are a type of file under Linux) within the directory you're deleting. Each one has to be deleted as part of the process, which requires multiple changes to the file system. How long is "forever" for you? The longest I've ever experienced personally was about 15 seconds. | |||
|
feedback
|