我在某个目录中有一个文件:
# cat 0f7fe16ba45fda36462cb35f82ad8c64730e78
@root
es5
module
tabs
indent 2
maxlen 80
ass
nomen
plusplus
但当我尝试删除它时
# rm 0f7fe16ba45fda36462cb35f82ad8c64730e78
rm: cannot remove '0f7fe16ba45fda36462cb35f82ad8c64730e78': No such file or directory
我尝试了 尝试删除文件但该文件存在时出现“没有此文件或目录”? 但它们不起作用。似乎没有任何特殊字符。
# ls -1b
0f7fe16ba45fda36462cb35f82ad8c64730e78
# ls -q
0f7fe16ba45fda36462cb35f82ad8c64730e78
# find . -maxdepth 1 -type f -name "*0f*"
./0f7fe16ba45fda36462cb35f82ad8c64730e78
# ls -l
total 512
-rwxrwxrwx 1 root root 63 Nov 27 2015 0f7fe16ba45fda36462cb35f82ad8c64730e78
# rm -i -- *
rm: remove regular file '0f7fe16ba45fda36462cb35f82ad8c64730e78'? y
rm: cannot remove '0f7fe16ba45fda36462cb35f82ad8c64730e78': No such file or directory
# ls --escape
0f7fe16ba45fda36462cb35f82ad8c64730e78
这是怎么回事?有人能帮我删除这个文件吗?
编辑:命令输出stat
:
$ stat 0f7fe16ba45fda36462cb35f82ad8c64730e78
File: '0f7fe16ba45fda36462cb35f82ad8c64730e78'
Size: 63 Blocks: 1 IO Block: 4096 regular file
Device: 806h/2054d Inode: 48177 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-01-04 00:06:49.697084100 -0500
Modify: 2015-11-27 20:15:19.490769000 -0500
Change: 2017-01-17 23:01:34.343100100 -0500
Birth: -
建议的其他命令:
$ find . -maxdepth 1 -type f -name "*0f*" -delete
find: cannot delete ‘./0f7fe16ba45fda36462cb35f82ad8c64730e78’: No such file or directory
$ find . -maxdepth 1 -type f -name "*0f*" -exec stat {} +
File: './0f7fe16ba45fda36462cb35f82ad8c64730e78'
Size: 63 Blocks: 1 IO Block: 4096 regular file
Device: 806h/2054d Inode: 48177 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-01-04 00:06:49.697084100 -0500
Modify: 2015-11-27 20:15:19.490769000 -0500
Change: 2017-01-17 23:01:34.343100100 -0500
Birth: -