I just ran some self-written program in which I make files and fill them with stuff. However, I did something wrong (or at least, not as intended) with the name generation and now there are four files stuck in the folder which cannot be removed as they 'do not exist'.
Outputs of commands:
ls -li:
ls: cannot access één: No such file or directory
ls: cannot access wetenschapÂpen.: No such file or directory
ls: cannot access verantwoorÂdelijk: No such file or directory
ls: cannot access woord wordt: No such file or directory
total 0
? -????????? ? ? ? ?            ? één
? -????????? ? ? ? ?            ? woord wordt
? -????????? ? ? ? ?            ? verantwoorÂdelijk
? -????????? ? ? ? ?            ? wetenschapÂpen.
rm -i -- *:
rm: remove regular file `één'? y
rm: cannot remove `één': No such file or directory
rm: remove regular file `woord wordt'? y
rm: cannot remove `woord wordt': No such file or directory
rm: remove regular file `verantwoorÂdelijk'? y
rm: cannot remove `verantwoorÂdelijk': No such file or directory
rm: remove regular file `wetenschapÂpen.'? y
rm: cannot remove `wetenschapÂpen.': No such file or directory
rm -rf folder: (with 'folder' being the folder the files reside in)
rm: cannot remove `folder': Directory not empty
find . -type f -delete: (as from the answer of Uditha Desilva)
find: cannot delete `./één': No such file or directory
find: cannot delete `./wetenschapÂpen.': No such file or directory
find: cannot delete `./verantwoorÂdelijk': No such file or directory
find: cannot delete `./woord wordt': No such file or directory
strace -o out rm -f -- *: Contents of out
How can I remove these files?
Important to note is that I do not have root access, so I would prefer an option which does not require that.
fsckit? The output fromstrace -o /some/output/file rm -f -- *orstrace -o /output/file find . -type f -deleterun from in the directory would also be interesting.stracerunning thefind . -type f -deletecommand?