1CHGRP(1)                         User Commands                        CHGRP(1)
2
3
4

NAME

6       chgrp - change group ownership
7

SYNOPSIS

9       chgrp [OPTION]... GROUP FILE...
10       chgrp [OPTION]... --reference=RFILE FILE...
11

DESCRIPTION

13       Change  the  group of each FILE to GROUP.  With --reference, change the
14       group of each FILE to that of RFILE.
15
16       -c, --changes
17              like verbose but report only when a change is made
18
19       -f, --silent, --quiet
20              suppress most error messages
21
22       -v, --verbose
23              output a diagnostic for every file processed
24
25       --dereference
26              affect the referent of each symbolic link (this is the default),
27              rather than the symbolic link itself
28
29       -h, --no-dereference
30              affect  symbolic  links  instead  of any referenced file (useful
31              only on systems that can change the ownership of a symlink)
32
33       --no-preserve-root
34              do not treat '/' specially (the default)
35
36       --preserve-root
37              fail to operate recursively on '/'
38
39       --reference=RFILE
40              use RFILE's group rather than specifying a GROUP value
41
42       -R, --recursive
43              operate on files and directories recursively
44
45       The following options modify how a hierarchy is traversed when  the  -R
46       option  is  also  specified.   If  more than one is specified, only the
47       final one takes effect.
48
49       -H     if a command line argument is a symbolic link  to  a  directory,
50              traverse it
51
52       -L     traverse every symbolic link to a directory encountered
53
54       -P     do not traverse any symbolic links (default)
55
56       --help display this help and exit
57
58       --version
59              output version information and exit
60

EXAMPLES

62       chgrp staff /u
63              Change the group of /u to "staff".
64
65       chgrp -hR staff /u
66              Change the group of /u and subfiles to "staff".
67

AUTHOR

69       Written by David MacKenzie and Jim Meyering.
70

REPORTING BUGS

72       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
73       Report chgrp translation bugs to <https://translationproject.org/team/>
74
76       Copyright  ©  2018  Free Software Foundation, Inc.  License GPLv3+: GNU
77       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
78       This is free software: you are free  to  change  and  redistribute  it.
79       There is NO WARRANTY, to the extent permitted by law.
80

SEE ALSO

82       chown(1), chown(2)
83
84       Full documentation at: <https://www.gnu.org/software/coreutils/chgrp>
85       or available locally via: info '(coreutils) chgrp invocation'
86
87
88
89GNU coreutils 8.30                 July 2018                          CHGRP(1)
Impressum