View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > Chgrp

From LQWiki

Jump to: navigation, search

chgrp is the command to change the group owner of a file or a directory.

Contents

Syntax

chgrp [group name] [file/directory name]

Where [group name]] is the group you want to change the ownership to, followed by [file/directory name].

Options

-R

Recursively change group owner of files/directory

Examples

chgrp family /usr/pictures
chgrp root /root

Similar pages

  • chown - Changes user/group ownership of a file
  • chmod - Changes the user/group permissions of a file/directory
  • ls - Lists files

Personal tools