unix删除文件删不掉

yuwei1978 2005-03-07 05:15:58
我是个unix新手,用turbolinux遇到一问题,请教各位
我想删掉一个名为“test\”,用rm命令却怎么也删不掉,请各位指教,谢谢!

错误信息如下:
[root@turbo /root]# ls -l
total 12
-rw-r--r-- 1 root root 0 Mar 8 13:30 collectdiag.tar
-rw-r--r-- 1 root root 10669 Mar 8 16:27 test\
[root@turbo /root]# rm test\
>
rm: cannot remove `test': No such file or directory
...全文
153 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
mengfeixiang 2005-03-07
  • 打赏
  • 举报
回复
幸虧沒有test文件如果有肯定讓你rm test\給誤刪除了
blueflame 2005-03-07
  • 打赏
  • 举报
回复
rm test\\
leeyiqun 2005-03-07
  • 打赏
  • 举报
回复
你应该这样删除:
rm -f test\\
其中的‘\’是个特殊字符,要用反斜杠转义一下。
tengulre 2005-03-07
  • 打赏
  • 举报
回复
chmod 777 test
rm -fr test

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧