On Fri, May 7, 2010 at 5:20 AM, Dj YB <[email protected]> wrote:
> hello,
>
> I have managed somehow to create a file I can't delete now.
> probably a failed copy\download long ago.
>
> the output shows like that:
>
> [r...@localhost 5]# ll
> total 1
> -rwxrwxrwx 1 root root 4 2010-05-07 12:07 24 Season 5 Episode 03.avi
> [r...@localhost 5]# rm 24\ Season\ 5\ Episode\ 03.avi
> rm: remove regular file `24 Season 5 Episode 03.avi'? y
> rm: cannot remove `24 Season 5 Episode 03.avi': No such file or directory
>
> any advices how to fix this problem are welcome.
>
>
There are many approaches. The one I favor is to do an ls with inode
numbers then do a find on that inode.
ls -il
The first column will list the inode. Next do a find on that inode:
find . -inum 123456 -maxdepth 1 -exec ls -l {} \;
If the file matches, just pass rm to find:
find . -inum 123456 -maxdepth 1 -exec rm {} \;
--
users mailing list
[email protected]
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines