免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1523 | 回复: 4
打印 上一主题 下一主题

求助:在unix下删除不了一个叫“-o”的文件怎么办? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-27 10:13 |只看该作者 |倒序浏览
我的一个目录里不知怎么出来了一个名为“-o”的文件。怎么都删除不了,怎么办啊?
求大虾指教!

论坛徽章:
0
2 [报告]
发表于 2006-03-27 10:19 |只看该作者
rm /.../-o (绝对路径)试试

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
3 [报告]
发表于 2006-03-27 10:22 |只看该作者
rm -- -o

论坛徽章:
0
4 [报告]
发表于 2006-03-27 10:23 |只看该作者
搞定!谢谢大虾!感激涕零。。。。。。。

论坛徽章:
0
5 [报告]
发表于 2006-03-27 12:07 |只看该作者
问一下,你是怎么创建出来的呢?
[root@localhost ~]# touch -o
touch: invalid option -- o
Try `touch --help' for more information.
[root@localhost ~]# touch \-o
touch: invalid option -- o
Try `touch --help' for more information.
[root@localhost ~]# touch /-o
[root@localhost ~]# ls -a
.                Desktop          .gtkrc              .nautilus
..               .dmrc            .gtkrc-1.2-gnome2   patch-2.6.16
anaconda-ks.cfg  .eggcups         .ICEauthority       .recently-used
.bash_history    .gconf           install.log         .rhn-applet.conf
.bash_logout     .gconfd          install.log.syslog  .ssh
.bash_profile    .gnome           mbox                .tcshrc
.bashrc          .gnome2          .metacity           .viminfo
.config          .gnome2_private  .mozilla            .Xauthority
.cshrc           .gstreamer-0.8   myenv.c
[root@localhost ~]# ls /
bin   etc     lib         misc  opt   sbin     sys       usr
boot  home    lost+found  mnt   proc  selinux  tftpboot  var
dev   initrd  media       -o    root  srv      tmp
[root@localhost ~]#
为什么呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP