Unix rm无法删除文件,即使id文件通过ls显示
您好,我有一个包含以下文件的目录:Unix rm无法删除文件,即使id文件通过ls显示,unix,Unix,您好,我有一个包含以下文件的目录: bomble@master:/mnt/store/test$ ls -lrt /mnt/store/ChemAlive/utilities/ total 46623 -rwxrwxrwx 1 root root 63168 Feb 9 13:48 rungms -rwxrwxrwx 1 root root 285 Feb 11 10:18 runCP2K.sh -rwxrwxrwx 1 root root 46535066 Feb 11 10
bomble@master:/mnt/store/test$ ls -lrt /mnt/store/ChemAlive/utilities/
total 46623
-rwxrwxrwx 1 root root 63168 Feb 9 13:48 rungms
-rwxrwxrwx 1 root root 285 Feb 11 10:18 runCP2K.sh
-rwxrwxrwx 1 root root 46535066 Feb 11 10:22 cp2k.popt
-rwxrwxrwx 1 root root 108 Feb 11 10:22 cp2kend
-rwxrwxrwx 1 root root 206 Feb 11 10:22 cp2kendhess
-rwxrwxrwx 1 root root 285 Feb 11 10:22 cp2kstart
-rwxrwxrwx 1 root root 34 Feb 11 10:23 gamessdisphf
-rwxrwxrwx 1 root root 45 Feb 11 10:23 gamesssolvt
-rwxrwxrwx 1 root root 193 Feb 11 10:23 gamessstart
-rwxrwxrwx 1 root root 1110176 Feb 11 10:23 mopac5021mn.exe
-rwxrwxrwx 1 root root 564 Feb 11 10:23 mopacgeom
-rwxrwxrwx 1 root root 95 Feb 11 10:23 nwchemend
-rwxrwxrwx 1 root root 197 Feb 11 10:23 nwchemwaterend
-rwxrwxrwx 1 root root 25110 Feb 11 10:24 rmsperl.pl
-rwxrwxrwx 1 root root 60 Feb 11 10:24 scriptjmol
-rwxrwxrwx 1 root root 15 Feb 11 10:24 triatomicend.mop
-rwxrwxrwx 1 root root 224 Feb 11 10:30 gamessstarthf
我想删除出现的rungms。如果我尝试失败:
bomble@master:/mnt/store/test$ sudo rm /mnt/store/ChemAlive/utilities/rungms
rm: cannot remove '/mnt/store/ChemAlive/utilities/rungms': No such file or directory
有什么想法吗
谢谢首先,这个问题不太适合这个论坛和
Unix
标签,因为它与编程无关。它应该在论坛上被问到
无论如何,根据您的描述,目录似乎已损坏。您可以尝试在以下位置共享以下配方:
我认为它在文件名的末尾有一个不可打印的字符或空格
只需执行
sudorm/mnt/store/ChemAlive/utilities/rung*
如何?如果您附加ls-l
命令的结果,会有所帮助。它报告了有关文件的更多详细信息。@nolexa请参阅编辑,但我确信这不是一个正确的问题。我将检查以下可能性:介质是以只读访问方式装入的,介质是物理写保护的。您可以在该目录中创建一个伪文件,然后将其删除吗?是的,我可以。正是这个文件有问题