avatar
问个删除文件的问题# Unix - 噫吁兮,危乎高哉
m*t
1
不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,
-rw-r--r--
用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.
avatar
a*t
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.
: 谢

avatar
m*e
3
To delete a file, you have to have w permission on the directory.

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

avatar
r*f
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.
: 谢

avatar
m*t
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.

avatar
c*t
6
Try lsattr

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

avatar
m*u
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
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。