chgrp (change group)

team bbl


Changes the group owner of a file.

 Format:    chgrp newgroup filename Examples:  chgrp janet file27.txt 

The file file27.txt now has the group owner janet. Only the owner of the file or the super user can change the group. If you attempt to change the group to a group that doesn't exist, an error message displays.

Opt

What It Does

Example

-c

Display info about file changes

 chgrp -c janet file2 changed group of 'file2' to janet 

-R

Make changes in all subdirectories

 ls -R janet file3 changes file3 in any subdirectories, as well 


    team bbl



    Spring Into Linux
    Spring Into Linux
    ISBN: 0131853546
    EAN: 2147483647
    Year: 2005
    Pages: 362
    Authors: Janet Valade

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net