• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

chgrp

chgrp

chgrp Changes group.
chgrp [-R [-H | -L | -P]] [-fh] <group>
									<file1>
								<file2> ...

-R Recursively descends through directory arguments to change the group ID.
-H If -R is specified, symbolic links on the command line are followed. Symbolic links encountered in tree traversal are not followed.
-L If -R is specified, all symbolic links are followed.
-P If -R is specified, no symbolic links are followed.
-f Forces an attempt to change group ID without reporting any errors.
-h If the file is a symbolic link, the group ID of the link is changed.
Unless -h, -H, or -L is specified, chgrp on symbolic links always succeeds and has no effect.
The -H, -L, and -P options are ignored unless -R is specified. Because they also override each other, the last option specified determines the action that is taken.
The group can be either a numeric group ID or a group name. If a group name exists for a group ID, the associated group name is used for the group.
The user invoking chgrp must belong to the specified group and be the owner of the file, or be the super user.
Unless invoked by the super-user, chgrp clears set-user-id and set-group-id bits.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint