1CHGRP(1) User Commands CHGRP(1)
2
3
4
6 chgrp - change group ownership
7
9 chgrp [OPTION]... GROUP FILE...
10 chgrp [OPTION]... --reference=RFILE FILE...
11
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 --dereference
20 affect the referent of each symbolic link (this is the default),
21 rather than the symbolic link itself
22
23 -h, --no-dereference
24 affect each symbolic link instead of any referenced file (useful
25 only on systems that can change the ownership of a symlink)
26
27 --no-preserve-root
28 do not treat `/' specially (the default)
29
30 --preserve-root
31 fail to operate recursively on `/'
32
33 -f, --silent, --quiet
34 suppress most error messages
35
36 --reference=RFILE
37 use RFILE's group rather than specifying a GROUP value
38
39 -R, --recursive
40 operate on files and directories recursively
41
42 -v, --verbose
43 output a diagnostic for every file processed
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
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
69 Written by David MacKenzie and Jim Meyering.
70
72 Report bugs to <bug-coreutils@gnu.org>.
73
75 Copyright © 2007 Free Software Foundation, Inc.
76 This is free software. You may redistribute copies of it under the
77 terms of the GNU General Public License
78 <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the
79 extent permitted by law.
80
82 The full documentation for chgrp is maintained as a Texinfo manual. If
83 the info and chgrp programs are properly installed at your site, the
84 command
85
86 info chgrp
87
88 should give you access to the complete manual.
89
90
91
92GNU coreutils 6.9 March 2008 CHGRP(1)