rm-rf 中Linux删除文件出现rm: cannot remove `.user.ini‘: Operation not permitted

场景: 都是知道 rm -rf 删除的威力,再根目录下进行所有文件都会被递归删除,连系统都被损坏。但是偶尔也会遇见rm -rf都无法删除的文件,执行后报rm: cannot remove `.user.ini': Operation not permitted 一、这时候需要使用到Linux的chattr命令, chattr命令用于改变文件属性。这项指令可改变存放在ext2文件系统上的文件或目录属
相关文章
相关标签/搜索