问个删除文件的问题# Unix - 噫吁兮,危乎高哉m*t2002-11-12 08:111 楼不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,-rw-r--r--用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.谢
a*t2002-11-12 08:112 楼Are you root user? Check the owner of the files, because only the owner hasthe write permission (remove) on it. So, you have to br either the root orowner.【在 m****t 的大作中提到】: 不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,: -rw-r--r--: 用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.: 谢
m*e2002-11-12 08:113 楼To delete a file, you have to have w permission on the directory.【在 m****t 的大作中提到】: 不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,: -rw-r--r--: 用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.: 谢
r*f2002-11-12 08:114 楼did you try to move it to a temprary directory, and then use "rm -rf" todelete the directory. Sometimes, it works for me.【在 m****t 的大作中提到】: 不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,: -rw-r--r--: 用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.: 谢
m*t2002-11-12 08:115 楼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*t2002-11-12 08:116 楼Try lsattr【在 m****t 的大作中提到】: 不知从哪当了点.垃级,怎么也删不掉了.check 了文件属性,: -rw-r--r--: 用 rm 和 chmod try 了无数遍也不管用.这儿是不是有什么trick.: 谢
m*u2002-11-12 08:117 楼Maybe there is strange characters in the filename. Tryls -l firstletter_filename*lastletterit may show you the actual name.【在 c**t 的大作中提到】: Try lsattr