我是个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
by yuweipaul - Linux论坛 - 2005-03-07 21:48:59 阅读(1518) 回复(5)
我是个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
不小心操作建立了一个--help开头的文件 [email=root@localhost]root@localhost[/email] mactrack]# rm --help.tgz rm不能删除 --help.tgz文件 使用rm 直接删除是不行. 在查看 rm 的 man 手册时有这么一行提示: QUOTE: To remove a file whose name starts with a ‘-’, for example ‘-foo’, use one of these commands: rm -- -foo rm ./-foo 这个指令是指删除当前目录.下的-foo,/有转义的意思.相...
企业有时候出于[color="#000000"]项目的需要,会临时组成一个项目小组来完成某个特定的项目。此时项目小组要求各个项目小组成员多某个目录具有读写的权限,可以往这个目录中建立文件,可以阅读他人创建的文件。但是有一个限制,即不能够删除他人建立的文件。如下图所示,现在系统工程师为某个项目专门建立了一个item的目录。在这个目录下有两个文件,分别为urr001与tgt001,分别是用户SA01与用户SA02创建的。现在企业的要求是,无...
(用的人后果自负!本人概不负责!) find /opt/var/ -type f -exec rm -f {} \; 将 /opt/var/ 可能是 十几万的文件删除, 如果用 rm 则无法成完大文件批量的作法。 ~~说明~~ 在unix有些目录中,如果有很多文件,比一个目录如超过6万多个文件时,使用rm * 是无法删除的,因为shell需要把*翻译成这个目录下的每个文件名,在翻译的过程中 如果匹配到的文件名字太多,则SHELL就放弃这次操作。 可以通过如下命令删除 find /va...