linux删除乱码文件

一些乱码文件不可以通过普通的rm命令进行管理。
可以通过删除i节点的方式删除。

[root@LX4000B5B5 local]# ls -n
total 7792                                                                                                                                                              
-rw-r--r--   1 0 0       0 Jan 30 10:08 ?]
-rw-r--r--   1 0 0       0 Jan 30 10:08 ??0?%?钘?:?~x??5?FI???_?~????_???WElu?谈?Z脦pk
-rw-r--r--   1 0 0       0 Jan 30 10:08 ?2
-rw-r--r--   1 0 0       0 Jan 30 10:08 ??AiBI??x???

查看乱码文件的i结点

[root@LX4000B5B5 local]# ls -liahaha                                                                                                                                    
total 8.8M                                                                                                                                                             
3506525 drwxr-xr-x  25 root root 4.0K Jan 30 10:28 .                                                                                                                   
3506177 drwxr-xr-x  14 root root 4.0K Dec  3  2012 ..

使用find命令找文件删除

[root@LX4000B5B5 local]# find . -inum 3506525 -exec rm {} -rf \;
[root@LX4000B5B5 local]# ls -a

  

posted @ 2014-02-11 10:44  贱书生  阅读(287)  评论(0编辑  收藏  举报