linux 更改文件属性

1.chattr +i 文件  会使文件变成只读属性只能读不能写。不可删除

 

2. chattr -i 文件 文件可读不可写。可删除

 

原文地址:https://www.cnblogs.com/zengqinhai/p/9699377.html