.\" Copyright (c) 1989, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\" %sccs.include.redist.roff%
.\" @(#)chflags.1 8.2 (Berkeley) %G%
utility modifies the file flags of the listed files
The options are as follows:
option is specified, symbolic links on the command line are followed.
(Symbolic links encountered in the tree traversal are not followed.)
option is specified, all symbolic links are followed.
option is specified, no symbolic links are followed.
Change the file flags for the file hierarchies rooted
in the files instead of just the files themselves.
Flags are a comma separated list of keywords.
The following keywords are currently defined:
.Bd -literal -offset indent compact
sappnd set the system append-only flag (super-user only)
schg set the system immutable flag (super-user only)
uappnd set the user append-only flag (owner or super-user only)
uchg set the user immutable flag (owner or super-user only)
before an option causes the flag to be turned off.
.Bd -literal -offset indent compact
nodump the file should never be dumped
Symbolic links do not have flags, so unless the
on a symbolic link always succeeds and has no effect.
options are ignored unless the
In addition, these options override each other and the
command's actions are determined by the last one specified.
utility exits 0 on success, and >0 if an error occurs.