Master · Permissions and Links
chattr: Modify file attribute flags
Syntax
chattr [+-] flag fileExamples
sudo chattr +i app.confUsage and sandbox support
For review only: practice in a real Linux environment, this sandbox does not execute this command.
This command is for reference and review, and the simulation terminal does not provide corresponding exercises yet.
Related commands
chmodModify permissionschownModify ownerumaskSet new file permission masklnCreate symbolic linkreadlinkView symbolic link targetssudoExecute command as administratorgroupsQuery user groupchgrpModify the group to which the file belongsgetfaclView extended access controlsetfaclSet up extended access controllsattrQuery file attribute flagssuSwitch user sessionpasswdChange account passworduseraddcreate AccountusermodModify account propertiesuserdelDelete accountgroupaddCreate user groupgetentQuery system account database