Centoschattr command for changing file attributes

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.