chgrp

QNX SDP8.0Utilities ReferenceUtilities

Change file group ownership (POSIX, toybox)

Syntax:

chgrp [-HLPR] [-fhv] group file...

Runs on:

QNX OS

Options:

-f
Suppress most error messages.
-H
If the -R option is specified, follow the command line symbolic links.
-h
Modify the symbolic links instead of the reference file.
-L
If the -R option is specified, follow all symbolic links.
-P
If the -R option is specified, do not follow symbolic links. This is the default.
-R
Recursively change group ownership of files. For each file that names a directory, chgrp changes the group of the directory and of all files in the file hierarchy below it.
-v
Be verbose; display to stdout all the operations being performed.
group
A group name from the group database, or a numeric group ID.
file
The pathname of a file whose group ID is to be modified.

Description:

The chgrp utility lets you change the group ownership of one or more files. For each file you name, chgrp sets the file's group ID to the one specified by group.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: