H I O X INDIA
LINUX Commands
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

LINUX / UNIX cmd
Introduction
Commands in A
Commands in B
Commands in C
Commands in D
Commands in E
Commands in F
Commands in G
Commands in H
Commands in I
Commands in J
Commands in K
Commands in L
Commands in M
Commands in N
Commands in P
Commands in R
Commands in S
Commands in T
Commands in U
Commands in W
Commands in Y
More about Linux
Feedback




chgrp Linux Commands


Topic

What is Linux chgrp Command?




Explanation

chgrp COMMAND:
     chgrp command is used to change the group of the file or directory. This is an admin command. Root user only can change the group of the file or directory.

SYNTAX:
  The Syntax is
     chgrp [options] newgroup filename/directoryname

OPTIONS:
     
-R Change the permission on files that are in the subdirectories of the directory that you are currently in.
-c Change the permission for each file.
-f Force. Do not report errors.



EXAMPLE:
     
  1. chgrp hiox test.txt

    The group of 'test.txt' file is root, Change to newgroup hiox.

  2. chgrp -R hiox test

    The group of 'test' directory is root. With -R, the files and its subdirectories also changes to newgroup hiox.

  3. chgrp -c hiox calc.txt

    They above command is used to change the group for the specific file('calc.txt') only.






        Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


privacy policy     license     sitemap
© 2004-2009 HIOX INDIA - hioxindia.com

Other Links