由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 问个删除文件的问题
相关主题
如何只列出文件[转载] Re: [转载] a UNIX permission question
怎么把文件所在的目录名加到文件名后面Re: [转载] a UNIX permission question
Help!group permission
请教e-mail的设置Shell Question
from ftp, how to change permissiona question about "find"?
how to use setuid permission for a perl program?what's wrong with my CXterm5.0?
How to block the access to a directory?cxterm installation problem
怎样使UNIX下homepage目录下的内容unix commands question
相关话题的讨论汇总
话题: try话题: directory话题: permission话题: owner话题: delete
进入Unix版参与讨论
1 (共1页)
m****t
发帖数: 2684
1
不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,
-rw-r--r--
用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.
a***t
发帖数: 39
2

Are you root user? Check the owner of the files, because only the owner has
the write permission (remove) on it. So, you have to br either the root or
owner.

【在 m****t 的大作中提到】
: 不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,
: -rw-r--r--
: 用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.
: 谢

m*****e
发帖数: 4193
3
To delete a file, you have to have w permission on the directory.

【在 m****t 的大作中提到】
: 不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,
: -rw-r--r--
: 用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.
: 谢

r********f
发帖数: 1
4

did you try to move it to a temprary directory, and then use "rm -rf" to
delete the directory. Sometimes, it works for me.

【在 m****t 的大作中提到】
: 不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,
: -rw-r--r--
: 用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.
: 谢

m****t
发帖数: 2684
5
I was told this files are 'locked'? who knows 'locked' meaning?
br />

【在 r********f 的大作中提到】
:
: did you try to move it to a temprary directory, and then use "rm -rf" to
: delete the directory. Sometimes, it works for me.

c**t
发帖数: 2744
6
Try lsattr

【在 m****t 的大作中提到】
: 不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,
: -rw-r--r--
: 用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.
: 谢

m*****u
发帖数: 1342
7
Maybe there is strange characters in the filename. Try
ls -l firstletter_filename*lastletter
it may show you the actual name.

【在 c**t 的大作中提到】
: Try lsattr
1 (共1页)
进入Unix版参与讨论
相关主题
unix commands questionfrom ftp, how to change permission
Korn shell scripthow to use setuid permission for a perl program?
请教一个UNIX问题, 也许很低级, 谢谢How to block the access to a directory?
One Question怎样使UNIX下homepage目录下的内容
如何只列出文件[转载] Re: [转载] a UNIX permission question
怎么把文件所在的目录名加到文件名后面Re: [转载] a UNIX permission question
Help!group permission
请教e-mail的设置Shell Question
相关话题的讨论汇总
话题: try话题: directory话题: permission话题: owner话题: delete