.\" Copyright (c) 1989, 1990 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\" %sccs.include.redist.roff%
.\" @(#)chflags.1 5.7 (Berkeley) %G%
utility modifies the file flags of the listed files
The options are as follows:
When encountering a symbolic link on the command line, follow it. All other
symbolic links encountered in the traversal are not followed.
Traverse a file hierarchy.
For each file that is of type directory,
changes the flags of all files in the file hierarchy below it followed
by the flags of the directory itself.
When encountering a symbolic link anywhere in the traversal, follow it.
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
The flags of a symbolic link are immutable, so unless the
on a symbolic link always succeeds and has no effect.
utility exits 0 on success, and >0 if an error occurs.