| manpages.info - online man pages | ![]() |
|||
|
chflags (1) Table of Contents
Namechflags - change file flags
Synopsischflags [-R [-H | -L | -P]] flags file ...
DescriptionThe chflags utility modifies the file flags of the listed files as specified by the flags operand.
The options are as follows:
The flags are specified as an octal number or a comma separated list of keywords. The following keywords are currently defined:
Putting the letters ``no'' before an option causes the flag to be turned off. For example:
nouchg the immutable bit should be cleared
Symbolic links do not have flags, so unless the -H or -L option is set, chflags on a symbolic link always succeeds and has no effect. The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's actions are determined by the last one specified.
You can use ls -lo to see the flags of existing files.
DiagnosticsThe chflags utility exits 0 on success, and >0 if an error occurs.
See Alsols(1) , chflags(2) , stat(2) , fts(3) , symlink(7)
HistoryThe chflags command first appeared in 4.4BSD.
|