chattr 就是 change file attribute的意思
參數
+ :加屬性
- :減屬性
= :設定一堆
屬性:
A no atime update 不允許修改atime
C no copy on write
D synchoronous directory updates
S synchronous updates 必須sync
T top of directory hierarchy
a append only只允許append
c compressed自動壓縮,讀取時自動解壓縮,哇!好高級!
d no dump當dump時,具有d屬性的文件不加入dump
e extent format
i immuttbale 可厲害了,讓一個文件不能刪除,改名,增加軟硬鏈接,無法寫入
j data journalling ext3時會將寫入記錄 journal
s secure deletion 可以安全刪除
t no tail-merging
u undeletable 與s相反,刪除時數據還會存在磁盤中