[英]How to delete files from directory using rm -rf?
I have directory exam with 2 files in it. 我有2个文件的目录考试。 I need to delete files but permission is denied.
我需要删除文件,但权限被拒绝。 Even
![rm -rf][1]
command can't delete these files. 甚至
![rm -rf][1]
命令也无法删除这些文件。 I logged in as a root user. 我以root用户身份登录。
# rm -rf exam_a
# rm -rf exam_b
From root user check attributes of files 从root用户检查文件的属性
# lsattr
if you notice i
or a
如果您注意到
i
或a
# man chattr
# chattr -i [filename]
# chattr -a [filename]
if it doesn't work reboot system. 如果不起作用,请重新启动系统。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.