chattr
Sign in to save'''''' is the command in Linux that allows a user to set certain attributes of a file. is the command that displays the attributes of a file.
~11 min read
Encyclopedic overview
14 sectionsContents
- In Linux systems ({{mono|chattr}} and {{mono|lsattr}})
- File system support
- {{mono|chattr}} description
- {{mono|lsattr}} description
- Attributes
- Notes
- In BSD-like systems ({{mono|chflags}})
- File system support
- {{mono|chflags}} description
- Displaying
- Attributes
- See also
- Notes
- References
' is the command in Linux that allows a user to set certain attributes of a file. is the command that displays the attributes of a file.
Most BSD-like systems, including macOS, have always had an analogous ' command to set the attributes, but no command specifically meant to display them; specific options to the ls| command are used instead. The chflags command first appeared in 4.4BSD.
Excerpted from Wikipedia’s “chattr” article, available under the CC BY-SA 4.0 licence.