I have a directory with many subdirectories. I tried doing
rm -rf mydirectory
but it was still running after 1 hour. I have tried getting the number of subdirectories with
ls -l . | egrep -c '^-'
but it hasn't finished after 30 minutes.
Is there a faster way to recursively delete an entire directory?
df -i
show on that filesystem? If you do have a large number of files there really isn't much you can do except wait.