Difference between revisions of "Linux: File Attributes"

From Define Wiki
Jump to navigation Jump to search
(Created page with "Beyond the normal permissions files can have attributes set to control how a file can be used. == Change and Set Attributes == <syntaxhighlight> chattr +<attribute> <file> chattr -<a...")
 
(No difference)

Latest revision as of 19:30, 15 August 2013

Beyond the normal permissions files can have attributes set to control how a file can be used.

Change and Set Attributes

chattr +<attribute> <file>

chattr -<attribute> <file>

Attributes

  • Append Only (a)

Prevents deletion, text can only be added to the end of the file.

  • no dump (d)

Prevents backups with the dump command

  • extent format (e)

Set with ext file system - cannot be removed

  • immutable (i)

No Deletion or changes Possible

  • indexed (l)

Set indexes for searching - cannot be removed