如何删除文件?

时间:2013-11-16 09:08:02

标签: linux ubuntu

root@ubuntu:/home/tomxue/SourceCode_Windows/linux-stable/.git/objects/pack# cat tmp_pack_rjkmke 
cat: tmp_pack_rjkmke: Permission denied
root@ubuntu:/home/tomxue/SourceCode_Windows/linux-stable/.git/objects/pack# ls -al
ls: cannot access tmp_pack_rjkmke: Permission denied
total 0
drwxrwxrwx 1 root root 0 Nov 16 16:47 .
drwxrwxrwx 1 root root 0 Nov 16 16:56 ..
-????????? ? ?    ?    ?            ? tmp_pack_rjkmke
root@ubuntu:/home/tomxue/SourceCode_Windows/linux-stable/.git/objects/pack# touch tmp_pack_rjkmke 
touch: cannot touch ‘tmp_pack_rjkmke’: Permission denied
root@ubuntu:/home/tomxue/SourceCode_Windows/linux-stable/.git/objects/pack# rm tmp_pack_rjkmke 
rm: cannot remove ‘tmp_pack_rjkmke’: Permission denied
root@ubuntu:/home/tomxue/SourceCode_Windows/linux-stable/.git/objects/pack# rm -rf tmp_pack_rjkmke 
rm: cannot remove ‘tmp_pack_rjkmke’: Permission denied

如您所见,文件的访问信息包含大量“?”。我甚至不能touch它,我也不能删除它。那怎么办?

1 个答案:

答案 0 :(得分:0)

  1. 重新启动并重试
  2. 进行文件系统检查并重试(最好从CD / USB启动,我喜欢SystemRescueCD