chgrp

Name

chgrp -- change group ownership

Synopsis

chgrp [OPTION]... GROUP FILE...
chgrp [OPTION]... --reference=RFILE FILE...

Description

chgrp is as specified in the SUS but with differences as listed below.

Differences

-c, --changes

is like verbose, but reports only when a change is made.

--dereference

affects the referent of each symbolic link, rather than the symbolic link itself.

-h, --no-dereference

affects symbolic links instead of any referenced file. (Available only on systems that can change the ownership of a symlink.)

-f, --silent, --quiet

suppresses most error messages.

--reference=RFILE

uses RFILE's group rather than the specified GROUP value.

-v, --verbose

outputs a diagnostic for every file processed.

--version

outputs version information and exit.