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 chgrp bugs to bug-coreutils@gnu.org
73 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
74 General help using GNU software: <http://www.gnu.org/gethelp/>
75 Report chgrp translation bugs to <http://translationproject.org/team/>
76
78 Copyright © 2010 Free Software Foundation, Inc. License GPLv3+: GNU
79 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
80 This is free software: you are free to change and redistribute it.
81 There is NO WARRANTY, to the extent permitted by law.
82
84 The full documentation for chgrp is maintained as a Texinfo manual. If
85 the info and chgrp programs are properly installed at your site, the
86 command
87
88 info coreutils 'chgrp invocation'
89
90 should give you access to the complete manual.
91
92
93
94GNU coreutils 8.5 November 2010 CHGRP(1)