Chattr (changeattribute) function description: changes the file attributes. Syntax: chattr [-RV] [-v & lt; version number & gt;] [+/-/= & lt; attribute & gt;] [file or directory...] note: this command can change the file or directory attributes stored in the ext2 file system. these attributes are in the following eight modes: a: make the file or directory for additional purposes only. B: do not update the last access time of the file or directory. C: File
Chattr (change attribute)
Function description: changes the file attributes.
Syntax: chattr [-RV] [-v <版本编号> ] [+/-/= <属性> ] [File or directory...]
Note: this command can change the file or directory attributes stored in the ext2 file system. these attributes are in the following eight modes:
A: Make the file or directory for additional purposes only.
B: do not update the last access time of the file or directory.
C: Compress files or directories and store them.
D: exclude files or directories from dumping operations.
I: Do not change files or directories.
S: Confidential deletion of files or directories.
S: updates files or directories instantly.
U: delete files outside of protection.
Parameters:
-R recursive processing: All files and subdirectories in the specified directory are processed together.
-V <版本编号> Set the file or directory version.
-V shows the command execution process.
+ <属性> Enable this attribute for a file or directory.
- <属性> Disable this attribute for a file or directory.
= <属性> Specifies the attribute of a file or directory.