在Linux服务器遇到删除不掉得文件如何办 ,宝塔用命令无法删除文件得解决问题
用宝塔默认删除工具提示已经移动回收站,而回收站文件在,选中被删除得文件依然在
费解,因为我可是root用户阿
然后用Linux 命令
rm -rf 文件夹名称
来删除提示
rm: cannot remove 'zb_install/index.php': Operation not permitted
rm: cannot remove 'zb_install/language/zh-tw.php': Operation not permitted
rm: cannot remove 'zb_install/language/en.php': Operation not permitted
rm: cannot remove 'zb_install/language/zh-cn.php': Operation not permitted
最后还是宝塔企业服务群找到解决方案:
扫描二维码关注公众号,回复:
15554618 查看本文章
最终解决方案:
chattr -iaR /wwwwwwww/lm/lm
对目录执行
chattr -iaR
又学习了。