O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

chgrp

Changes the group associated with a file

chgrp [options] group file-list

chgrp [options] --reference=rfile file-list

The chgrp utility changes the group associated with a file. See page 1108 for information on how chown can change the group associated with, as well as the owner of, a file.

Arguments

The group is the name or numeric group ID of the new group. The file-list is a list of pathnames of the files whose group association you want to change. The rfile is the pathname of a file whose group is to become the new group associated with file-list.

Options

--changes

-c Displays a message for each file whose group was changed.

--quiet or --silent

-f Causes chgrp not to display warning messages about files whose permissions prevent you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required