Page 1 of 1
Can't delete events files
Posted: Tue Apr 08, 2008 1:30 am
by bigmonk
I had a power flicker which caused an unclean reboot and some database corruption. I got the database corruption problem fixed but there are large files in my events folder that I can't delete. When I try to remove them by rm -rf ..../events/* the computer just hangs.
I apparently have too many files in this folder. How can I delete these files?
Running Fedora 8.
Posted: Tue Apr 08, 2008 1:53 pm
by ernesto
find . -name '*.*' | xargs rm
Posted: Tue Apr 08, 2008 3:21 pm
by sfmartin
The rm command usually takes a while to process when you want to delete a folder that contains a huge qty of files. I had the same situation in the past. I just ran the command and left the PC working during the night. After several minutes (maybe hours), it completed the deletion of the folder.
Regards,
Sebastian
Posted: Tue Apr 08, 2008 7:25 pm
by Lee Sharp
Look at top. It probably shows "rm" as the highest process merrily chugging along deleting a large file or directory.
Posted: Sat Apr 26, 2008 3:15 pm
by nabetse_x
find -type f | grep \.jpg | xargs rm
i use that command and works nice...
yo uso ese comando y funciona muy bien...