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相反,删除时数据还会存在磁盘中