1. 程式人生 > >Linux 檔案刪除提示 Operation not permitted

Linux 檔案刪除提示 Operation not permitted

 Linux  刪除檔案 隱藏檔案提示 Operation not permitted ?

linux  刪除 隱藏檔案 提示  Operation not permitted  不允許操作?

使用 lsattr 檢視檔案的屬性;

lsaat /data/* 

發現當前檔案有個 i 屬性

i 屬性;只能root 操作; rm 不能直接刪除 ;所以 只能使用 chattr命令 (配置檔案隱藏屬性) 更改;

去除 i 屬性:

chattr -i 

然後再 rm -rf  刪除之就可以了