2.11BSD/src/bin/chflags/chflags.1

Compare this file to the similar file:
Show the results in this format:

.\" 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.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"	@(#)chflags.1	8.2.1 (2.11BSD GTE) 11/28/94
.\"
.TH CHFLAGS 1 "November 28, 1994"
.UC 4
.SH NAME
chflags \- change file flags
.SH SYNOPSIS
chflags [-R] [-f]\fBflags\fP \fBfile\fP ...
.SH DESCRIPTION
The
.B chflags
utility modifies the file flags of the listed files
as specified by the
.B flags
operand.
.PP
The options are as follows:
.TP 15
-R
Change the file flags for the file hierarchies rooted
in the files instead of just the files themselves.
.PP
-f
\fBchflags\fP will not complain if it fails to change the flags on a 
file.
.PP
Flags are a comma separated list of keywords.
The following keywords are currently defined:
.TP 20
arch
No effect.  This bit is defined and will be set/cleared as requested but
nothing in the system makes use of it yet.
.TP 20
dump
Set the dump flag
.TP 20
sappnd
Set the system append-only flag (super-user only)
.TP 20
schg
Set the system immutable flag (super-user only)
.TP 20
uappnd
Set the user append-only flag (owner or super-user only)
.TP 20
uchg
Set the user immutable flag (owner or super-user only)
.PP
Putting the letters
.B no
before an option causes the flag to be turned off.
For example:
.TP 20
nodump
the file should never be dumped
.PP
Symbolic links do not have flags and are silently ignored by
.B chflags.
When the -R option is given and symbolic links are encountered they are
not traversed.  This is the same behaviour as \fBchmod(1)\fP.
.PP
The
.B chflags
utility exits 0 on success, and >0 if an error occurs.
.SH SEE ALSO
chflags(2),
stat(2),
symlink(7)