Linux

chgrp

CautionChange group ownership

chgrp -R <group> <path>

Changes the owning group; -R recurses. Common when setting up shared directories.

Examples

  • chgrp -R developers /srv/shareSet group on a share

Syntax

chgrp [-R] <group> <path>

Before you run it

Watch the scope of -R.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store