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
68       GNU  coreutils  online  help:  <http://www.gnu.org/software/coreutils/>
69       Report chgrp translation bugs to <http://translationproject.org/team/>
70

AUTHOR

72       Written by David MacKenzie and Jim Meyering.
73
75       Copyright © 2013 Free Software Foundation, Inc.   License  GPLv3+:  GNU
76       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
77       This  is  free  software:  you  are free to change and redistribute it.
78       There is NO WARRANTY, to the extent permitted by law.
79

SEE ALSO

81       The full documentation for chgrp is maintained as a Texinfo manual.  If
82       the  info  and  chgrp programs are properly installed at your site, the
83       command
84
85              info coreutils 'chgrp invocation'
86
87       should give you access to the complete manual.
88
89
90
91GNU coreutils 8.22               October 2018                         CHGRP(1)
Impressum