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.  RFILE is  al‐
41              ways dereferenced if a symbolic link.
42
43       -R, --recursive
44              operate on files and directories recursively
45
46       The  following  options modify how a hierarchy is traversed when the -R
47       option is also specified.  If more than one is specified, only the  fi‐
48       nal one takes effect.
49
50       -H     if  a  command  line argument is a symbolic link to a directory,
51              traverse it
52
53       -L     traverse every symbolic link to a directory encountered
54
55       -P     do not traverse any symbolic links (default)
56
57       --help display this help and exit
58
59       --version
60              output version information and exit
61

EXAMPLES

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

AUTHOR

70       Written by David MacKenzie and Jim Meyering.
71

REPORTING BUGS

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

SEE ALSO

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