您好我有一个包含以下文件的目录:
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
有什么想法吗?
由于
答案 0 :(得分:0)
首先,这个问题并不适合这个论坛和Unix
标签,因为它与编程无关。应该在Unix&Linux或Superuser论坛上询问。
无论如何,根据你的描述,该目录似乎已损坏。您可以尝试在https://superuser.com/questions/197605/delete-a-corrupt-file-in-linux分享以下食谱:
答案 1 :(得分:0)
我认为它在文件名的末尾有一个不可打印的字符或空格。
如何做sudo rm /mnt/store/ChemAlive/utilities/rung*