chflags.1 (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) | chflags.1 (158562983ed457f824f6fcc0578eaabac35d0878) |
---|---|
1.\" Copyright (c) 1989, 1990, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" | 1.\" Copyright (c) 1989, 1990, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" |
35.\" @(#)chflags.1 8.2 (Berkeley) 3/31/94 | 35.\" @(#)chflags.1 8.4 (Berkeley) 5/2/95 |
36.\" $FreeBSD$ 37.\" | 36.\" $FreeBSD$ 37.\" |
38.Dd March 31, 1994 | 38.Dd May 2, 1995 |
39.Dt CHFLAGS 1 40.Os 41.Sh NAME 42.Nm chflags 43.Nd change file flags 44.Sh SYNOPSIS 45.Nm chflags 46.Oo --- 29 unchanged lines hidden (view full) --- 76Change the file flags for the file hierarchies rooted 77in the files instead of just the files themselves. 78.El 79.Pp 80Flags are a comma separated list of keywords. 81The following keywords are currently defined: 82.Bd -literal -offset indent compact 83arch set the archived flag (super-user only) | 39.Dt CHFLAGS 1 40.Os 41.Sh NAME 42.Nm chflags 43.Nd change file flags 44.Sh SYNOPSIS 45.Nm chflags 46.Oo --- 29 unchanged lines hidden (view full) --- 76Change the file flags for the file hierarchies rooted 77in the files instead of just the files themselves. 78.El 79.Pp 80Flags are a comma separated list of keywords. 81The following keywords are currently defined: 82.Bd -literal -offset indent compact 83arch set the archived flag (super-user only) |
84dump set the dump flag | 84opaque set the opaque flag (owner or super-user only) 85nodump set the nodump flag (owner or super-user only) |
85sappnd set the system append-only flag (super-user only) 86schg set the system immutable flag (super-user only) 87sunlnk set the system undeletable flag (super-user only) 88uappnd set the user append-only flag (owner or super-user only) 89uchg set the user immutable flag (owner or super-user only) 90uunlnk set the user undeletable flag (owner or super-user only) 91archived, sappend, schange, simmutable, uappend, uchange, uimmutable, 92sunlink, uunlink 93 aliases for the above 94.Ed 95.Pp 96Putting the letters 97.Dq no 98before an option causes the flag to be turned off. 99For example: 100.Bd -literal -offset indent compact | 86sappnd set the system append-only flag (super-user only) 87schg set the system immutable flag (super-user only) 88sunlnk set the system undeletable flag (super-user only) 89uappnd set the user append-only flag (owner or super-user only) 90uchg set the user immutable flag (owner or super-user only) 91uunlnk set the user undeletable flag (owner or super-user only) 92archived, sappend, schange, simmutable, uappend, uchange, uimmutable, 93sunlink, uunlink 94 aliases for the above 95.Ed 96.Pp 97Putting the letters 98.Dq no 99before an option causes the flag to be turned off. 100For example: 101.Bd -literal -offset indent compact |
101nodump the file should never be dumped | 102nouchg the immutable bit should be cleared |
102.Ed 103.Pp 104Symbolic links do not have flags, so unless the 105.Fl H 106or 107.Fl L 108option is set, 109.Nm chflags --- 28 unchanged lines hidden --- | 103.Ed 104.Pp 105Symbolic links do not have flags, so unless the 106.Fl H 107or 108.Fl L 109option is set, 110.Nm chflags --- 28 unchanged lines hidden --- |