Linux: File Attributes

From Define Wiki
Revision as of 19:30, 15 August 2013 by Michael (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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