chgrp.1 (709B)
1 .Dd 2015-10-08 2 .Dt CHGRP 1 3 .Os sbase 4 .Sh NAME 5 .Nm chgrp 6 .Nd change file group ownership 7 .Sh SYNOPSIS 8 .Nm 9 .Op Fl h 10 .Oo 11 .Fl R 12 .Op Fl H | L | P 13 .Oc 14 .Ar group 15 .Ar file ... 16 .Sh DESCRIPTION 17 .Nm 18 sets the group id of each 19 .Ar file 20 to the gid of 21 .Ar group . 22 .Sh OPTIONS 23 .Bl -tag -width Ds 24 .It Fl h 25 Preserve 26 .Ar file 27 if it is a symbolic link. 28 .It Fl R 29 Change file group ownerships recursively. 30 .It Fl H 31 Dereference 32 .Ar file 33 if it is a symbolic link. 34 .It Fl L 35 Dereference all symbolic links. 36 .It Fl P 37 Preserve symbolic links. This is the default. 38 .El 39 .Sh SEE ALSO 40 .Xr chmod 1 , 41 .Xr chown 1 , 42 .Xr chmod 2 , 43 .Xr chown 2 , 44 .Xr getgrnam 3 45 .Sh STANDARDS 46 The 47 .Nm 48 utility is compliant with the 49 .St -p1003.1-2013 50 specification.