Why rm command in Linux can delete file/dir in seconds while delete in FTP is really slow
<p>Recently I created some dir which contains a lot of files and subdir by mistake. And then I tried to delete the dir through my FTP software (FileZilla), but it's really slow, like you can see it cost 2/3 seconds to delete each file. </p>

<p>So I stopped it and tried that through SSH and use <code>rm -rf</code> command, then the target directory was deleted just in a second.</p>

<p>My question is why it's so slow on FTP while fast on SSH?</p>

<p>Much thanks!</p>