天天看點

Linux chattr指令與lsattr指令

chattr  改變檔案屬性

lsattr 檔案   檢視檔案屬性

    chattr + i    将檔案鎖住,任何使用者都不能進行修改、、

    chattr + a   隻能向檔案追加資料,不能删除、