Sunday, October 14, 2012

Easy learn linux command line- Part 9

If you want to know about, How to use Special Attributes on Files you must read this Post.


Special Attributes on files

Command Description
# chattr +a file1 allows write opening of a file only append mode   
# chattr +c file1 allows that a file is compressed / decompressed automatically by the kernel   
# chattr +d file1 makes sure that the program ignores Dump the files during backup   
# chattr +i file1 makes it an immutable file, which can not be removed, altered, renamed or linked   
# chattr +s file1 allows a file to be deleted safely   
# chattr +S file1 makes sure that if a file is modified changes are written in synchronous mode as with sync   
# chattr +u file1 allows you to recover the contents of a file even if it is canceled   
# lsattr show specials attributes   

source:linuxguide

No comments: