bsd man page for chflags

Query: chflags

OS: bsd

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CHFLAGS(1)						      General Commands Manual							CHFLAGS(1)

NAME
chflags - change file flags
SYNOPSIS
chflags [-R] [-f]flags file ...
DESCRIPTION
The chflags utility modifies the file flags of the listed files as specified by the flags operand. The options are as follows: -R Change the file flags for the file hierarchies rooted in the files instead of just the files themselves. -f chflags will not complain if it fails to change the flags on a file. Flags are a comma separated list of keywords. The following keywords are currently defined: arch No effect. This bit is defined and will be set/cleared as requested but nothing in the system makes use of it yet. dump Set the dump flag 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) Putting the letters no before an option causes the flag to be turned off. For example: nodump the file should never be dumped Symbolic links do not have flags and are silently ignored by chflags. When the -R option is given and symbolic links are encountered they are not traversed. This is the same behaviour as chmod(1). The chflags utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
chflags(2), stat(2), symlink(7) 4th Berkeley Distribution November 28, 1994 CHFLAGS(1)
Related Man Pages
chflags(1) - bsd
fchflags(2) - bsd
chflags(1) - osx
fchflags(2) - netbsd
chflags(1) - freebsd
Similar Topics in the Unix Linux Community
change user id from 200 to 202
immutable bit question
immutable flag or similar for Solaris 10 / ZFS
immutable flag or similar for Solaris 10 / ZFS
WHat are flags?