Directory

Encyclopedia

NodeWorks
                              ENCYCLOPEDIA

Link Checker

Home
Encyclopedia : C : CH : CHG :

Chgrp

 

Chgrp

The chgrp command is used by unprivileged users on Unix-like systems to change the group associated with a file. Unlike the chown command, chgrp allows regular users to change groups, but only to one of which they are a member.

Usage


The general syntax of the chgrp command is:

chgrp group target1 [target2 ..]

  • The group parameter indicates the new group with which the targets should be associated.
  • The target parameters indicate the files or directories for which the change should be made.


Footnote: The group parameter may either be a symbolic name or an identifier.

Usage examples


$ chgrp bob red.gif

  • Changes the group associated with red.gif to 'bob', provided the executing user is a member of that group.

    See also

  • Chown
  • Group identifier (Unix)


NodeWorks boosts web surfing!
Page Returned in 0.081 seconds - HTML Compressed 69.4%

This article is from Wikipedia. All text is available
under the terms of the GNU Free Documentation License.
 GNU Free Documentation License
© 2008 Chamas Enterprises Inc.