BSD 2.11 - man page for chflags (bsd section 1)
|Linux & Unix Commands - Search Man Pages
chflags - change file flags
chflags [-R] [-f]flags file ...
The chflags utility modifies the file flags of the listed files as specified by the flags
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
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 be-
haviour as chmod(1).
The chflags utility exits 0 on success, and >0 if an error occurs.
chflags(2), stat(2), symlink(7)
4th Berkeley Distribution November 28, 1994 CHFLAGS(1)
All times are GMT -4. The time now is 11:03 PM.