CHFLAGS(1) BSD Reference Manual CHFLAGS(1)
NAME
chflags - change file flags
SYNOPSIS
chflags [-R] flags file ...
DESCRIPTION
The chflags utility modifies the file flags of the listed files as speci-
fied by the flags operand.
The options are as follows:
-R Traverse a file hierarchy. For each file that is of type direc-
tory, chflags changes the flags of all files in the file hierar-
chy below it followed by the flags of the directory itself.
Symbolic links are not indirected through, nor are their flags altered.
Only the owner of a file or the super-user is permitted to change the low
16-bits in the flags of a file. Only the the super-user is permitted to
change the high 16-bits in the flags of a file.
The chflags utility exits 0 on success, and >0 if an error occurs.
FLAGS
Flags may be absolute or symbolic. An absolute flag is an octal number
constructed by or'ing the following values:
1 the file should never be dumped
The symbolic flags is a comma separated list of keywords. The following
keywords are defined:
dump cause the file to be dumped when it is next modified
Putting the word ``no'' before an option causes it to be deleted. For
example:
nodump the file should never be dumped
SEE ALSO
chflags(2), stat(2), fts(3)
BSDI BSD/386 March 27, 1993 1