来自http://linuxsir.org/bbs/thread318074.html
今天突然发现home中有两个文件, 分别为 -d 和 -D,不会删,晕了。
引用:server abc # ls -l
total 881
.......
-rw-r--r-- 1 abc users 449418 2007-10-30 16:12 -d
-rw-r--r-- 1 abc users 449418 2007-10-30 16:12 -D

rm -- -D
rm -- -d这样就行了,靠,怎么想出来的,兄弟!

认真man rm 了一下, 看到这个说明了, linux永远的要依靠文档!

有一天,上帝把所有的文档都没收了, ... ...

根源在于C库里的getopt函数
man 3 getopt
The special argument "--" forces an end of option-scanning regardless of the scanning mode.
rm ./-d
rm ./-D
也行滴~~~~~~~~~~~~

作者: swordman用inode号删除

ls -l
找到inode number 是n
find ./ -inum n -exec rm {} \;ls -i