what dose the command "chflags" used for ?

Jez Hancock jez.hancock at munk.nu
Wed Jun 18 21:36:46 PDT 2003

On Thu, Jun 19, 2003 at 05:24:09AM +0100, Supote Leelasupphakorn wrote:
> Dear all,
>    Because we have the command "chmod" for change the
> permissions of
> files so what does the command "chflags" used for and
> what suituation 
> I must use it ?
chflags is used to set system flags on files you don't want to be
modified accidentally - most commonly the 'noschg' flag stops a file
from being deleted by a normal user.

See the man page for more details, and also the -o option to 'ls' (which
shows flag settings for files.

More information about the freebsd-questions mailing list